SV: [ZPT] extra_context

Magnus Heino magnus.heino@pleon.sigma.se
Fri, 30 Nov 2001 16:12:33 +0100


> The __call__ of PageTemplate puts all its arguments under
> "options" in the
> ZPT namespace, so what you really want is either:
>
> my_here = {'foo': 'content'}
> p.pt_render(extra_context={'here': my_here})

Hrm. I could have sworn that this is what I have been trying to do for the
past hour.  Well, anyway, it now works. Thanks :)

I guess I shouldn't bump into any known problems trying to use PageTemplates
standalone? It seems to be quite independent from Zope, as long as you dont
use the PageTemplateFile and ZopePageTemplate files.

/Magnus