templates and controllers

Mads Kiilerich mads at kiilerich.com
Sun Feb 15 12:03:34 EST 2015


On 02/13/2015 09:34 PM, Thomas De Schampheleire wrote:
> For this static implementation, where one template file 'includes' the other, there are also two variants used:
> - render the included template from the controller, store it in a variable that is passed in the controller context, and display the variable from the main template.

I don't think that is a good idea. I don't think pattern it is used that 
much? It is not so MVC-ish.

> - or let the main template include the other template directly from mako code.

+1
I think it is better to handle all templating in the templates.

/Mads


More information about the kallithea-general mailing list