with: Controls DTML variable look up
The 'with' tag pushes an object onto the DTML namespace. Variables
will be looked up in the pushed object first.
Syntax
'with' tag syntax::
The 'with' tag is a block tag. It pushes the named variable or
variable expression onto the DTML namespace for the duration of
the 'with' block. Thus names are looked up in the pushed object
first.
Attributes
only -- Limits the DTML namespace to only include the one defined
in the 'with' tag.
mapping -- Indicates that the variable or expression is a mapping
object. This ensures that variables are looked up correctly in the
mapping object.
Examples
Looking up a variable in the REQUEST::
'id' was not in the request.
Pushing the first child on the DTML namespace::
First child's id:
See Also
"let tag":dtml-let.stx