X-Git-Url: https://git.rapsys.eu/packbundle/blobdiff_plain/575d559e5aea5e099ba7784547b1aa359d28fb8c..fa2660f5327dfaa132b6de7d0d762a784eea400e:/Twig/PackNode.php?ds=inline diff --git a/Twig/PackNode.php b/Twig/PackNode.php deleted file mode 100644 index 4f08be0..0000000 --- a/Twig/PackNode.php +++ /dev/null @@ -1,31 +0,0 @@ - $value), array('name' => $name), $line, $tag); - #} - public function __construct(array $nodes = array(), array $attributes = array(), $lineno = 0, $tag = null) { - parent::__construct($nodes, $attributes, $lineno, $tag); - #$this->output = $attributes['output']; - #$this->setAttribute($this->getAttribute('name'), $attributes['name']); - } - - public function compile(\Twig_Compiler $compiler) { - - #header('Content-Type: text/plain'); - #var_dump($this->getNode(0)); - #var_dump($this->attributes); - #var_dump($compiler->subcompile($this->getNode(0))); - #exit; - #$compiler->addDebugInfo($this)->write('echo \'
'.json_encode(array('nodes' => $this->nodes, 'attributes' => $this->attributes)).'\';');
- $compiler
- ->addDebugInfo($this)
- ->write('$context[\''.$this->getAttribute('name').'\'] = ')
- ->repr($this->getAttribute('output'))
- ->raw(";\n")
- ->subcompile($this->getNode('value'))
- ->raw(";\n");
- }
-}