Glasnost Help and Documentation
Developers
Templates
TAL and METAL
TAL
TAL Statements: structure keyword





TAL Statements: structure keyword
tal:content="structure expression"
tal:replace="structure
expression"
The default behavior of the content and replace statements is to replace angle-brackets and ampersands with their HTML entity equivalents.
The structure keyword passes the content or replacement text through unchanged, allowing HTML/XML markup to be inserted.
Example
<div tal:define="homeContent getMainRubric().contentId" tal:condition="getMainRubric().contentId" tal:omit-tag=""> <div tal:replace="structure homeContent.getFormattedBody()" /> </div>