[Zope] dtml-in, dtml-var, javascript and keeping quotes

Richard Rosenberg richrosenberg at earthlink.net
Sun Sep 12 20:33:56 EDT 2004


Thanks Dieter. . .that did it.

Forgot all about good 'ol repr(), and it also will not maul my non- 
string
array keys or values. Thanks again.

On 09/12/2004 10:14:11 AM, Dieter Maurer wrote:
> Richard Rosenberg wrote at 2004-9-11 23:59 +0000:
> >Is there a format code (or other way) to do the following:
> >
> ><script language="JavaScript">
> >
> >var myArray = new Object();
> ><dtml-in somelist_of_strings prefix="sl">
> >myArray[<dtml-var sl_item>]=<dtml-var
> anotherlist_of_strings[sl_index]>
> ></dtml-in>
> >
> ></script>
> >
> >Specifically, I am interested in whether there is a way to force
> <dtml-
> >var> to
> >render the quotes,
> 
> Try: '<dtml-var expr="repr(yourString)">'
> 
> --
> Dieter
> 
> 
>






More information about the Zope mailing list