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);
    }
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);
    }
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 ) ; }
Compile la template, ses sous templates et ses variables.

@return string La template compilée.
Compile la template ses sous templates et ses variables .