On Sat, Nov 06, 2010 at 10:49:05AM +0100, Philippe Bruhat (BooK) wrote:
On Sat, Nov 06, 2010 at 10:06:02AM +0100, Philippe Bruhat (BooK) wrote:
Actually this is overlooking the layout (which is now handled by the template). I'm not sure how to handle this.
template() is handling the layout as a special case (layout option), and render_with_layout() calls template() in a way that forces the special case.
This is probably a problem. As it prevents us from doing things like layout(template(format)) and layout(format(template)) easily.
It all comes down to the fact that generating the final page content requires two passes through the template engine: one to process the .tt file, and one for the layout. I think those two passes should be made more distinct. -- Philippe Bruhat (BooK) To flaunt your strength is to make it your weakness. (Moral from Groo The Wanderer #25 (Epic))