-
Notifications
You must be signed in to change notification settings - Fork 36
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
Extending a base template not working for me. #17
Comments
Hi there @protosam ! Thanks for opening this. Looks like If I remember right, when a child template's block is executed, the execution has access to all blocks in the template hierarchy, but the implementation right now just does a greedy "first". Note that For your example, I hope that wasn't too convoluted, let me know if anything is unclear! |
@tyler-sommer it makes sense. I'll see if I can implement |
Something I do with
twig
in php like in thej2
files I have shown below. This doesn't seem to work in stick. I've narrowed it down toparent()
being the culprit. Stick just kindof gives up after hitting that.This library at least got further than some of the other's I've checked out for jinjas templates.
I'd be happy to contribute, but I would be learning from the ground up on this stuff. If no one else has time to really look into this, if you can point me in the right direction on learning this stuff from the ground up, I'm more than happy to put some of my free time into learning this a bit and throwing in a pull request when I patch it for myself.
templates/page1.j2
templates/base.j2
main.go
The text was updated successfully, but these errors were encountered: