Twig API
Class

Twig_Node_Embed

class Twig_Node_Embed extends Twig_Node_Include

Represents an embed node.

Methods

__construct($filename, $index, Twig_Node_Expression $variables = null, $only = false, $ignoreMissing = false, integer $lineno, string $tag = null)

Constructor.

compile(Twig_Compiler $compiler)

Compiles the node to PHP.

from Twig_Node_Include

Details

at line 20
public __construct($filename, $index, Twig_Node_Expression $variables = null, $only = false, $ignoreMissing = false, integer $lineno, string $tag = null)

Constructor.

The nodes are automatically made available as properties ($this->node).
The attributes are automatically made available as array items ($this['name']).

Parameters

$filename
$index
Twig_Node_Expression $variables
$only
$ignoreMissing
integer $lineno The line number
string $tag The tag name associated with the Node

in Twig_Node_Include at line 30
public compile(Twig_Compiler $compiler)

Compiles the node to PHP.

Parameters

Twig_Compiler $compiler A Twig_Compiler instance