[Zope] Curious DTML question

Aleksander Salwa ololo@zeus.polsl.gliwice.pl
Wed, 17 Jan 2001 07:28:15 +0100 (CET)


On Wed, 17 Jan 2001, Nick McDowell wrote:

> <dtml-with templates>
> <dtml-var myHTMLtemplate>
> </dtml-with>
> 
> .......everything works correctly and my HTML page is rendered properly with
> graphics etc.  However I initially tried to execute the method via the
> following (slightly less keyboard action) -
> <dtml-var expr="templates.myHTMLtemplate">
> 
> .......this results in the HTML template being displayed in plain text
> format i.e. the HTML is not rendered and all the tags are visible.

> I also tried calling -
> <dtml-var expr="templates.myHTMLtemplate()">
> .......which was worse as it  resulted in errors relating to Zope's
> inability to "locate" dtrml methods called within the "myHTMLtemplate"
> method..

<dtml-var expr="templates.myHTMLtemplate(_.None, _)">

ololo@zeus.polsl.gliwice.pl, oleks@helper.pl

/--------------------------------------\
| `long long long' is too long for GCC |
\--------------------------------------/