Can `layout = 'foo.html'` be replaced by `local layout = 'foo.html'`?
xiangnanscu opened this issue · 1 comments
xiangnanscu commented
Hello, bungle, I notice the examples in README.md which show defining layout
in the file:
{% layout="section.html" %}
<h1>{{message}}</h1>
can be added a local
, the output is the same
{% local layout="section.html" %}
<h1>{{message}}</h1>
I just wondering:
Is {% layout="section.html" %}
same to {% local layout="section.html" %}
?
bungle commented
the layout variable is already defined (locally) for you, so it does not make sense to redefine it, just use it.