You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Here is how is use macros:
Note that panel/test.twig.js is included in the page as well. i'm guessing that there is something with how i use it. any suggestion ?
{% macro test(a1) %}
{% include 'panel/test.twig' %}
{% endmacro %}
{% import _self as macros %}
{{ macros.test(a1)}}
The text was updated successfully, but these errors were encountered:
{% import _self as macros %} cause twigjs to generate context["macros"] = this.env_.createTemplate(this); so it seems that using macros in the same template is not supported yet. I move the macro to a different template and imported it to work around it.
Also it seems that generally including a template inside a macro also does not work
Here is how is use macros:
Note that panel/test.twig.js is included in the page as well. i'm guessing that there is something with how i use it. any suggestion ?
The text was updated successfully, but these errors were encountered: