Templates
<!-- wires/greeter.bxm -->
<bx:output>
<div>
<h1>#greeting#</h1>
<button wire:click="updateGreeting">Update</button>
<bx:if timeOfDay() EQ "morning">
<p>Good morning!</p>
<bx:else>
<p>Good day!</p>
</bx:if>
</div>
</bx:output><!-- wires/greeter.cfm -->
<cfoutput>
<div>
<h1>#greeting#</h1>
<button wire:click="updateGreeting">Update</button>
<cfif timeOfDay() EQ "morning">
<p>Good morning!</p>
<cfelse>
<p>Good day!</p>
</cfif>
</div>
</cfoutput>File Structure
./wires/Counter.bx <!-- BoxLang class -->
./wires/Counter.cfc <!-- CFML component -->
./wires/counter.bxm <!-- BoxLang template -->
./wires/counter.cfm <!-- CFML template -->Template Requirements
Data Properties
Computed Properties
Explicit Templates
Helper Methods
ColdBox Event Object
Last updated
Was this helpful?