Templates
The HTML that makes up your components.
Last updated
The HTML that makes up your components.
Last updated
Templates are the HTML section of your and consist of any valid CFML tags. This includes <cfif>, <cfloop>, etc.
Your templates must have a single outer element for CBWIRE to properly bind to your component and update the DOM. This can be any valid HTML element. Below we are using a DIV element.
You can access any global helper methods you have defined in your ColdBox application, along with any modules you have installed.
For example, if you've installed the cbi8n module ( an internalization module for ColdBox ), you can access its global helper methods in your template, such as the $r()
method for displaying text in various languages.
You can nest components as much as you need by simply calling wire() from within a component's template.
You can also conditionally render nested components.
You can access your from your template by calling the property name.
You can access your from your template by calling the property name as a method.