Add possible result from template
dyve opened this issue · 2 comments
dyve commented
Allow the templates to provide data to the layout. Extremely handy when you want to add stuff to header etc. See example at my fork github.com/dyve/limonade.
I also did a change to render that makes it somewhat smarter towards the $layout parameter.
dyve commented
This could also be achieved by using content_for, which is the more obvious way to do it. Return statements tend to be confusing when used in includes, so I'd opt for content_for.
sofadesign commented
Ok ;-)