[Zope] Re: Rendering DTML from string
DaMann
hammerhead at linuxmail.org
Sat Apr 3 08:34:28 EST 2004
Doesn't work <dtml-var "_[someDTMLstrObj]">. I get the raw dtml in page
source. Which doesn't display in the browser because browser doesn't
understand DTML tags.
Johnathan, you helped me out with a similar question some time ago.
Thanks again.
Any other suggestions?
Samir.
Small Business Services wrote:
> From: "Samir Mishra" <SamirMishra at cbuae.gov.ae>
>
>>I'm reading in text from a file residing in a LocalFS object, it contains
>>DTML code. My DTML method prints the DTML code rather than rendering the
>>variables. How can I get it to change this behaviour?
>
>
> Try something like (untested):
>
> <dtml-let routine="_.getattr(c_LocalFS, 'x.txt')">
> <dtml-var "_[routine]">
> </dtml-let>
>
>
> HTH
>
> Jonathan
>
>
> _______________________________________________
> Zope maillist - Zope at zope.org
> http://mail.zope.org/mailman/listinfo/zope
> ** No cross posts or HTML encoding! **
> (Related lists -
> http://mail.zope.org/mailman/listinfo/zope-announce
> http://mail.zope.org/mailman/listinfo/zope-dev )
>
More information about the Zope
mailing list