|
OK, but isn't there a way to pass the
dictionary 'template' to the template 'default' such that this
template refers to the 'base' macro in template['base']?
Presently, the templates are read from a filesystem, but in future
I would like to be able to read them from a (non-SQL) database.
That's why I'm experimenting with string-based templates.
If not, I will investigate the PageTemplateFile option. Thanks -- Nico Op 10-08-15 om 19:42 schreef Malthe Borch: String-based templates are really kind of awkward when it comes to "load". It's possible to wire it up, but you will need to do some work. It's easier to simply use PageTemplateFile because it has the "load" _expression_ compiler set up already. -- You received this message because you are subscribed to the Google Groups "pylons-discuss" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. To post to this group, send email to [email protected]. Visit this group at http://groups.google.com/group/pylons-discuss. For more options, visit https://groups.google.com/d/optout. |
- Re: Chameleon macro examples Malthe Borch
- Re: Chameleon macro examples Mike Orr
- Re: Chameleon macro examples Jonathan Vanasco
- Re: Chameleon macro examples bismigalis
- Re: Chameleon macro examples Malthe Borch
- Re: Chameleon macro examples Mike Orr
- Re: Chameleon macro examples Mike Orr
- Re: Chameleon macro examples Malthe Borch
- [pylons-discuss] Re: Chameleon macro example... Nico Poppelier
- [pylons-discuss] Re: Chameleon macro exa... Nico Poppelier
- [pylons-discuss] Re: Chameleon macr... Nico Poppelier
