Closed kamlekar closed 8 years ago
I have three file structures like:
<div class="page-content"></div> {% block include_footer %} {% endblock %}
{% macro script(files) %} {% for file in files %} <script type="text/javascript" src="{{ file }}"></script> {% endfor %} {% endmacro %}
{% extends "sections/_skeleton-content.html" %} {% include "sections/_macros.html" %} {% block include_footer %} {{ script(['jquery.js','home.js']) }} {% endblock %}
But this isn't working. The error is
unable to call script which is undefined or falsey
I got it.
I need to use import statement. Sorry for this.
import
@kamlekar, for these kind of things check the nunjucks docs, this is just the compiler plugin.
I have three file structures like:
_skeleton-content.html
_macros.html
index.html
But this isn't working. The error is