Closed ghost closed 10 years ago
There are two easy ways to fix this todo:
TODO: only extend base template if base template string is not empty
we could do something like this:
{% extends baseTemplate ? baseTemplate : "empty.html.twig" %}
OR
{% extends [baseTemplate, 'empty.html.twig'] %}
as per this http://twig.sensiolabs.org/doc/tags/extends.html#dynamic-inheritance
the 2nd might be more exciting if we want multiple fallbacks
would be ok for me
:+1:
fixed this one too in #35
There are two easy ways to fix this todo:
we could do something like this:
OR
as per this http://twig.sensiolabs.org/doc/tags/extends.html#dynamic-inheritance
the 2nd might be more exciting if we want multiple fallbacks