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

purge happens after parent templates render #20

Open
stevenspiel opened this issue Nov 7, 2015 · 1 comment · May be fixed by #23
Open

purge happens after parent templates render #20

stevenspiel opened this issue Nov 7, 2015 · 1 comment · May be fixed by #23

Comments

@stevenspiel
Copy link

This is more of a feature request, but I would expect the parent template to not execute any code in it's block if the yield contains a purge of that area. For example, I have some url helpers that work on some pages, but don't exist on others, but the url helper is executed before the purge and so an exception is raised. Is that a feasible request?

@stevenspiel
Copy link
Author

Ok, after digging into the code a bit, I've found a solution. Working on tests before creating a pull request.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant