Skip to content
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

{{-g.a}} - ignored if g is dict ({{-g['a']}} works) (dot, dict) #196

Closed
rpuntaie opened this issue Apr 2, 2013 · 3 comments
Closed

{{-g.a}} - ignored if g is dict ({{-g['a']}} works) (dot, dict) #196

rpuntaie opened this issue Apr 2, 2013 · 3 comments

Comments

@rpuntaie
Copy link

rpuntaie commented Apr 2, 2013

No description provided.

@Naddiseo
Copy link
Contributor

This works for me.

@rpuntaie
Copy link
Author

Whoops, white space stripping = {{- for {{}}, too. What I intended to have is the negative of g.a, and that didn't come, I realize now, because of the white space stripping. Ok, but then the behavior of {{-g.a}} and {{-g['a']}} are different (g is a dict), and that's not supposed to be so, right? A dict entry is supposed to be addressable in both ways, isn't it?

@mitsuhiko
Copy link
Contributor

Always use whitespaces after {{ and before`}}`` as per styleguide to avoid such cases.

@github-actions github-actions bot locked as resolved and limited conversation to collaborators Nov 13, 2020
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants