Create a template node in a content definition. A node is essentially a reference to a template with associated data. Here's an example of a content definition containing a template node:
<content libname="content.example" template="front.html"><section name="body"><node template="newscontainer.html" let:style="splash"/><html:p>${news}</html:p></node></section></content>
Here's what newscontainer.html might look like. Note the use of {% children %} which will render the content contained inside a node:
<div style="${style}"><h3>The Latest News</h3>{% children %}</div>
name | purpose | type | required? | default | choices |
---|---|---|---|---|---|
from |
Application | application reference | No | ||
ifexists |
Skip if the template can not be found | boolean | No | no |
|
template |
Template | template path | No | ||
withscope |
Is current context when rendering template | boolean | No | no |
name | purpose | type | required? | default | choices |
---|---|---|---|---|---|
if |
Conditional expression | expression | No | yes |