Next Chapter | Up | Next Section | Contents

Using the only Attribute to Limit the Namespace


The only attribute, unique to the with tag, prunes the enclosing namespaces when rendering the body of the tag. This is advantageous to prevent acquisition within DTML:

<!--#with REQUEST only-->
<!--#unless id-->
An id was not specified.

<!--#/unless-->

<!--#/with-->

Without the only attribute, the above DTML would likely get an id value from the enclosing environment, which, in this example, is unwanted.

 

Next Chapter | Up | Next Section | Contents