Created
December 3, 2014 06:27
-
-
Save jarednova/680b442e16da8423c453 to your computer and use it in GitHub Desktop.
Sample of Twig Cache output
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
/* mods/side-nav.twig */ | |
class __TwigTemplate_0a76428590b54c4ba53bab18b8522f90b76d43e3ebb0782a476f00875fbab93a extends Twig_Template | |
{ | |
public function __construct(Twig_Environment $env) | |
{ | |
parent::__construct($env); | |
$this->parent = false; | |
$this->blocks = array( | |
); | |
} | |
protected function doDisplay(array $context, array $blocks = array()) | |
{ | |
// line 1 | |
echo "<ul class=\"side-menu-items\"> | |
\t"; | |
// line 2 | |
$context['_parent'] = (array) $context; | |
$context['_seq'] = twig_ensure_traversable((isset($context["sidebar_nav"]) ? $context["sidebar_nav"] : null)); | |
foreach ($context['_seq'] as $context["text"] => $context["link"]) { | |
// line 3 | |
echo "\t\t<li class=\"side-menu-item\"><a class=\"side-menu-link\" href=\""; | |
echo twig_escape_filter($this->env, (isset($context["link"]) ? $context["link"] : null), "html", null, true); | |
echo "\">"; | |
echo twig_escape_filter($this->env, (isset($context["text"]) ? $context["text"] : null), "html", null, true); | |
echo "</a></li> | |
\t"; | |
} | |
$_parent = $context['_parent']; | |
unset($context['_seq'], $context['_iterated'], $context['text'], $context['link'], $context['_parent'], $context['loop']); | |
$context = array_intersect_key($context, $_parent) + $_parent; | |
// line 5 | |
echo "</ul> | |
"; | |
} | |
public function getTemplateName() | |
{ | |
return "mods/side-nav.twig"; | |
} | |
public function isTraitable() | |
{ | |
return false; | |
} | |
public function getDebugInfo() | |
{ | |
return array ( 37 => 5, 26 => 3, 22 => 2, 19 => 1, 100 => 7, 97 => 6, 49 => 23, 46 => 22, 41 => 17, 38 => 16, 33 => 5, 30 => 4, 77 => 41, 57 => 26, 53 => 25, 31 => 5, 28 => 4,); | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment