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
As of 0.1.3, extra context passed to include tags is overridden by stub data from YAML files. The desired behaviour is for context from outer scopes to take priority over inner scopes, so this is wrong. Example of incorrect behaviour below:
myparenttemplate.html:
{% include 'mytemplate.html' with extra="from include tag" %}
mytemplate.html:
{{ extra }}
mytemplate.yaml:
context:
extra: "from YAML file"
Rendered output of myparenttemplate.html:
from YAML file
The text was updated successfully, but these errors were encountered:
In GitLab by @bcdickinson on Dec 18, 2017, 11:08
As of 0.1.3, extra context passed to include tags is overridden by stub data from YAML files. The desired behaviour is for context from outer scopes to take priority over inner scopes, so this is wrong. Example of incorrect behaviour below:
myparenttemplate.html:
mytemplate.html:
mytemplate.yaml:
Rendered output of myparenttemplate.html:
The text was updated successfully, but these errors were encountered: