Skip to content

Latest commit

 

History

History
31 lines (20 loc) · 935 Bytes

ViewCompilerStrategy.md

File metadata and controls

31 lines (20 loc) · 935 Bytes

View Compiler Strategy Documentation

\Greg\View\ViewCompilerStrategy is an extended Compiler Strategy of custom compilers, specially for the Viewer Contract.

Extends: \Greg\View\CompilerStrategy.

Example:

class FooCompiler extends \Greg\View\BladeCompiler implements \Greg\View\ViewCompilerStrategy
{
    public function addViewDirective($name)
    {
        // @todo add a directive that was already registered in the Viewer.
    }
}

Table of contents:

Methods:

Includes Compiler Strategy methods.

addViewDirective

Add a directive that was already registered in the Viewer Contract, but not in the compiler.