src/Core/Template.php
public function setData($name, $value = null, $filter = null)
    {
        if ($name && !is_null($value)) {
            $this->data[$name] = $value;
            if (!is_null($filter)) {
                $this->filters[$name] = $filter;
            }
        } elseif (is_array($name)) {
            $this->data = $name;
        } else {
            throw new \InvalidArgumentException('Invalid argument for set template data');
        }
        return $this;
    }
public function setData($name, $value = null, $filter = null)
    {
        if ($name && !is_null($value)) {
            $this->data[$name] = $value;
            if (!is_null($filter)) {
                $this->filters[$name] = $filter;
            }
        } elseif (is_array($name)) {
            $this->data = $name;
        } else {
            throw new \InvalidArgumentException('Invalid argument for set template data');
        }
        return $this;
    }
TODO: make filters is a preffixes in the $data_name