$body); $attributes = array_replace( array('debug' => null, 'combine' => null, 'var_name' => 'asset_url'), $attributes, array('asset' => $asset, 'inputs' => $inputs, 'filters' => $filters, 'name' => $name) ); parent::__construct($nodes, $attributes, $lineno, $tag); } public function compile(\Twig_Compiler $compiler) { $compiler->addDebugInfo($this); $combine = $this->getAttribute('combine'); $debug = $this->getAttribute('debug'); if (null === $combine && null !== $debug) { $combine = !$debug; } if (null === $combine) { $compiler ->write("if (isset(\$context['assetic']['debug']) && \$context['assetic']['debug']) {\n") ->indent() ; $this->compileDebug($compiler); $compiler ->outdent() ->write("} else {\n") ->indent() ; $this->compileAsset($compiler, $this->getAttribute('asset'), $this->getAttribute('name')); $compiler ->outdent() ->write("}\n") ; } elseif ($combine) { $this->compileAsset($compiler, $this->getAttribute('asset'), $this->getAttribute('name')); } else { $this->compileDebug($compiler); } $compiler ->write('unset($context[') ->repr($this->getAttribute('var_name')) ->raw("]);\n") ; } protected function compileDebug(\Twig_Compiler $compiler) { $i = 0; foreach ($this->getAttribute('asset') as $leaf) { $leafName = $this->getAttribute('name').'_'.$i++; $this->compileAsset($compiler, $leaf, $leafName); } } protected function compileAsset(\Twig_Compiler $compiler, AssetInterface $asset, $name) { $compiler ->write("// asset \"$name\"\n") ->write('$context[') ->repr($this->getAttribute('var_name')) ->raw('] = ') ; $this->compileAssetUrl($compiler, $asset, $name); $compiler ->raw(";\n") ->subcompile($this->getNode('body')) ; } protected function compileAssetUrl(\Twig_Compiler $compiler, AssetInterface $asset, $name) { $compiler->repr($asset->getTargetPath()); } } __halt_compiler();----SIGNATURE:----R4mIZp6PpY1lGiQCV5XugrcGOOiWYr1sjm4ynbkCPQ+wS9Jby/peNhseSUZjdzYV3vLdGRhi+NQ5aP+E998cOOiZ5OJ5XMcTyCxjgwP33bgfZAyIdJSlGZUH+cDLqpsOFnJy0OwxP0voZcu5c+WsdLQi5JHwzodfqy8R5CbWAf1tIoubkytnJ5SLyUgTvW/VOpnvGLsAgFiQ6SGu2zGd492bfIaODx7jVfspN8IGxoZMULYGuATUCi6WSvcasaUjRcTs1NS8Ov5synjwdy8zGVMaoXz1Au4FIBoQH9YZfvqnUkP0n0I6oGv3trG8/PhhkPOIk1xEc4uGjJuvu5m1VQG2+tFUzd/UAk/ThZg8jn5Cclq5JVu9L/FlaFsWWWDLxxpC1LI8v25jkUDm0OCoTTt5uRnaUmvh1bcX8i3eMglLuq4Xw0V3J7auJLbkyA4cw5/h6IHPhBAfVKOAHmQvG4KJ+q+AeRSUJ91Ci4fwisqf+R+GEbTABnqal8gO5kSzafrsidWk2pBacbu/zc+Q4+BQCy+vOkhFigOKgummKQmHlBPGiy56OYTcxzQOm6KpahPkAodnpj8ME1fL5TWjcnPvbPcO/RekRJuK/AAiKTdm35Oa2XKo4J0rw3BbyiXO4QkQoo9VpwvtKeJKHvunOQyJea4jyXN1r8ULO0seJrc=----ATTACHMENT:----NTMzMzcyNDM0MTY5MjM4NSAyNDYyMTIxNzcxMTM0OTkwIDIwMTgxMzc2NTc1MTQ2ODU=