]>
Raphaƫl G. Git Repositories - packbundle/blob - Twig/PackNode.php
3 namespace Rapsys\PackBundle\Twig
;
5 class PackNode
extends \Twig\Node\Node
{
7 * Compile the body node
11 public function compile(\Twig\Compiler
$compiler) {
12 //Add $context['<name>'] = '<value>'; in twig template
15 ->write('$context[\''.$this->getAttribute('name').'\'] = ')
16 ->repr($this->getAttribute('output'))
18 ->subcompile($this->getNode('value'))