You are not logged in Log in Join
You are here: Home » Members » Bill Anderson on Zope.org » Miscellaneous documentation » One will render a variable, one will look up avariable and render a matching object. » tip_view

Log in
Name

Password

 

Created by ZopeOrgSite . Last modified 2000-10-28 14:48:37.

Let us say we have a variable called foo. Foo has the value: index_html The difference between <dtml-var "_[foo]"> and <dtml-var "_['foo']"> is that <dtml-var "_['foo']"> will display "index_html" and <dtml-var "_[foo]"> will try render the *object* called index_html. In the former, you are asking for the contents of the foo variable. In the latter you are wanting an object that has the id that matches the contents of the foo variable.