public function render()
    {
        require_once 'functions_include.php';
        $block = [];
        foreach ($this->blocks as $key => &$subTpl) {
            $block[ $key ] = !is_null($subTpl)
                ? $this->filter('block.' . $key, $subTpl->render())
                : '';
        }

        foreach ($this->vars as $key => $value) {
            $$key = $this->filter('var.' . $key, $value);
        }

        ob_start();
        require $this->path . $this->name;
        $html = ob_get_clean();

        return $this->filter('output', $html);
    }