Glasnost

help

 

TAL Statements: omit-tag

The omit-tag statement replaces an element with its content (removing its start and end tags) when no expression is provided, or when the expression it contains evaluates to true.

Example

<div tal:omit-tag="" comment="this element will be removed">
  <h1>Welcome</h1>
</div>

results in

  <h1>Welcome</h1>
up