On Friday 04 May 2007 18:50, Neil Blakey-Milner wrote:
> To override the standard template used in a controller (ie,
> @expose("my.template.name")), pass "tg_template" in the dictionary you
> return from your controller. So, if the template is stored in a
> database, then you can just pass the name in the tg_template part of
> the dictionary you return.Great, this is exactly what I need :o) > > Second, I think it will be great to use widgets; are they a good > > choice to put non-form-based pages? As I don't want to mix python code > > and web design, how can I load a kid template from a widget? > > Widgets contain a template variable that contains the Kid template > (either the whole template, or a filename) to be used when it is to be > displayed. You'd then include the widgets from your page template. > You'd generally not have a single widget to display all the page - the > page would use multiple widgets. Yes, I plan to build my pages with widgets, like I do with a standard GUI app... Thank you very much for your help! -- Frédéric http://www.gbiloba.org
pgpWDdkuDhX3f.pgp
Description: PGP signature

