-
Notifications
You must be signed in to change notification settings - Fork 2
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Allow referring to root context with .
#24
Labels
feature
New feature or request
Comments
Has this feature been released? @rossmacarthur parent:
child:
error:
|
It hasn't been implemented. You will have to pass
|
I put some thought into it, there are some outstanding questions:
{% for k, v in object %}
{% with k | transform as name %}
{{ . }} <!-- does this have k, v, name, loop merged into the global context? -->
{% endwith %}
{% endfor %}
|
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
This could be useful if the root context is not a map, see #22.
There are some questions here though because the root context is not a single map but rather multiple scopes containing values. This would require copying the entire context which could potentially be expensive.
The text was updated successfully, but these errors were encountered: