public function compile()
    {
        if($this->compiledExists() === false)
        {
            if(is_file($this->filepath) === false)
            {
                throw new \Exception('File "'.$this->filepath.'" does not exists.');
            }

            $this->raw = file_get_contents($this->filepath);

            if($this->options['add-source-line-numbers'])
                $this->prepared = $this->addLinesNumbers($this->raw);
            else
                $this->prepared = $this->raw;

            $this->removeComments();
            $this->resolveExtending();
            $this->compileRenders();
            $this->compileEchoes();
            $this->compileConditions();
            $this->compileLoops();
            $this->compileSpecialStatements();
            $this->prepareSections();
            $this->findSections();
            $this->replaceSections();
        }
    }
public function compile()
    {
        if($this->compiledExists() === false)
        {
            if(is_file($this->filepath) === false)
            {
                throw new \Exception('File "'.$this->filepath.'" does not exists.');
            }

            $this->raw = file_get_contents($this->filepath);

            if($this->options['add-source-line-numbers'])
                $this->prepared = $this->addLinesNumbers($this->raw);
            else
                $this->prepared = $this->raw;

            $this->removeComments();
            $this->resolveExtending();
            $this->compileRenders();
            $this->compileEchoes();
            $this->compileConditions();
            $this->compileLoops();
            $this->compileSpecialStatements();
            $this->prepareSections();
            $this->findSections();
            $this->replaceSections();
        }
    }
public function compile ( ) { if ( $ this -> compiledExists ( ) === false ) { if ( is_file ( $ this -> filepath ) === false ) { throw new \ Exception ( 'File "' . $ this -> filepath . '" does not exists.' ) ; } $ this -> raw = file_get_contents ( $ this -> filepath ) ; if ( $ this -> options [ 'add-source-line-numbers' ] ) $ this -> prepared = $ this -> addLinesNumbers ( $ this -> raw ) ; else $ this -> prepared = $ this -> raw ; $ this -> removeComments ( ) ; $ this -> resolveExtending ( ) ; $ this -> compileRenders ( ) ; $ this -> compileEchoes ( ) ; $ this -> compileConditions ( ) ; $ this -> compileLoops ( ) ; $ this -> compileSpecialStatements ( ) ; $ this -> prepareSections ( ) ; $ this -> findSections ( ) ; $ this -> replaceSections ( ) ; } }
Compile view, if compiled version doesn't exists in cache.

@return void
Compile view if compiled version doesn t exists in cache .