rwz / nestive

A Better Nested Inheritable Layouts Plugin for Rails
MIT License
236 stars 31 forks source link

purge happens after parent templates render #20

Open stevenspiel opened 9 years ago

stevenspiel commented 9 years ago

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 commented 9 years ago

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