Twig API
Interface

Twig_CompilerInterface

interface Twig_CompilerInterface

Interface implemented by compiler classes.

Methods

Twig_CompilerInterface compile(Twig_NodeInterface $node)

Compiles a node.

string getSource()

Gets the current PHP code after compilation.

Details

at line 27
public Twig_CompilerInterface compile(Twig_NodeInterface $node)

Compiles a node.

Parameters

Twig_NodeInterface $node The node to compile

Return Value

Twig_CompilerInterface The current compiler instance

at line 34
public string getSource()

Gets the current PHP code after compilation.

Return Value

string The PHP code