Re: [Zope] ANNOUNCE: Advanced DTML HowTo
Are you confused by the subtleties of DTML? Want the skinny on advanced DTML tricks and gotchas? Check out my advanced DTML HowTo:
Thanks You say "one shouldn't have to use <!--#var "_['foo']"--> instead of <!--#var foo-->." However, i find it useful to write: <!--#if "_['foo'] and _['bar']"--> <!-- blah --> <!--#/if--> instead of: <!--#if foo--><!--#if bar--> <!-- blah --> <!--#/if--><!--#/if--> Hope that helps... Regards, Jephte CLAIN Service Informatique CHSR
At 9:43 +0400 3/15/99, Service Informatique CHSR wrote:
You say "one shouldn't have to use <!--#var "_['foo']"--> instead of <!--#var foo-->." However, i find it useful to write:
<!--#if "_['foo'] and _['bar']"--> <!-- blah --> <!--#/if-->
instead of:
<!--#if foo--><!--#if bar--> <!-- blah --> <!--#/if--><!--#/if-->
I seem to remember that this works, too: <!--#if expr="foo and bar"--> Doug -- Doug Wyatt doug@sonosphere.com Sonosphere (electric/improv music) http://www.sonosphere.com/
At 06:43 15/03/99 , Service Informatique CHSR wrote:
You say "one shouldn't have to use <!--#var "_['foo']"--> instead of <!--#var foo-->." However, i find it useful to write:
<!--#if "_['foo'] and _['bar']"--> <!-- blah --> <!--#/if-->
instead of:
<!--#if foo--><!--#if bar--> <!-- blah --> <!--#/if--><!--#/if-->
How about <!--#if "foo and bar"--> <!-- blah --> <!--#/if--> or <!--#if "_.getitem('foo', 1) and _.getitem('bar', 1)"--> <!-- blah --> <!--#/if--> So we can confuse each other even more =). -- M.J. Pieters, Web Developer | Antraciet http://www.antraciet.nl | Tel: +31-35-6254545 Fax: +31-35-6254555 | mailto:mj@antraciet.nl http://www.antraciet.nl/~mj | PGP: http://wwwkeys.nl.pgp.net:11371/pks/lookup?op=get&search=0xA8A32149 ------------------------------------------
participants (3)
-
Doug Wyatt -
Martijn Pieters -
Service Informatique CHSR