]>
Raphaƫl G. Git Repositories - packbundle/blob - Twig/PackNode.php
79e8e41105222615455de2a7a3717c5417ec44b8
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'))