Created
May 8, 2020 21:53
-
-
Save jorgecc/c250374b43251f6fcddbf7e64bff75bd to your computer and use it in GitHub Desktop.
bladeone_vs_twig
This file contains hidden or 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 | |
use Twig\Environment; | |
use Twig\Error\LoaderError; | |
use Twig\Error\RuntimeError; | |
use Twig\Extension\SandboxExtension; | |
use Twig\Markup; | |
use Twig\Sandbox\SecurityError; | |
use Twig\Sandbox\SecurityNotAllowedTagError; | |
use Twig\Sandbox\SecurityNotAllowedFilterError; | |
use Twig\Sandbox\SecurityNotAllowedFunctionError; | |
use Twig\Source; | |
use Twig\Template; | |
/* index.php */ | |
class __TwigTemplate_91280ddd9da06f8a99b4be752a69607598d88a074bb0a7655eeb74e472a4c689 extends Template | |
{ | |
private $source; | |
private $macros = []; | |
public function __construct(Environment $env) | |
{ | |
parent::__construct($env); | |
$this->source = $this->getSourceContext(); | |
$this->parent = false; | |
$this->blocks = [ | |
]; | |
} | |
protected function doDisplay(array $context, array $blocks = []) | |
{ | |
$macros = $this->macros; | |
// line 1 | |
echo "<ul> | |
"; | |
// line 2 | |
$context['_parent'] = $context; | |
$context['_seq'] = twig_ensure_traversable(($context["categories"] ?? null)); | |
foreach ($context['_seq'] as $context["_key"] => $context["category"]) { | |
// line 3 | |
echo " <li>"; | |
echo twig_escape_filter($this->env, $context["category"], "html", null, true); | |
echo "</li> | |
"; | |
} | |
$_parent = $context['_parent']; | |
unset($context['_seq'], $context['_iterated'], $context['_key'], $context['category'], $context['_parent'], $context['loop']); | |
$context = array_intersect_key($context, $_parent) + $_parent; | |
// line 5 | |
echo "</ul> | |
"; | |
} | |
public function getTemplateName() | |
{ | |
return "index.php"; | |
} | |
public function isTraitable() | |
{ | |
return false; | |
} | |
public function getDebugInfo() | |
{ | |
return array ( 53 => 5, 44 => 3, 40 => 2, 37 => 1,); | |
} | |
public function getSourceContext() | |
{ | |
return new Source("", "index.php", "D:\\folder\\www\\twig-test\\views\\index.php"); | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment