-
Notifications
You must be signed in to change notification settings - Fork 226
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
Added support for {{.}}
notation to allow direct access to the top of the context stack.
#15
Conversation
…of the context stack.
I also need this and the commits seem to work for me. Why isn’t this pulled yet? Is there anything obviously wrong with the PR? :) |
@hoisie, any chance of getting this pulled in soonish? |
@hoisie Another ping. |
Can you add a test case? |
OK, so I added tests, but it's been so long since I wrote any Go that I'm exceedingly suspicious of my own code. |
Added support for `{{.}}` notation to allow direct access to the top of the context stack.
Thanks! |
LOL, I hope you confirmed that tests pass.
|
Yes, I should have confirmed the tests :P I'll be more careful next time. |
This doesn't seem to account for nested objects. The
With input:
Output:
I know I am 3 years late to the party... |
this seems to have been the issue. If |
Fixes issue #14.