Getting Started
With CommandBox, you can start building reactive CFML apps in seconds.
Requirements
Adobe ColdFusion 2018+ or Lucee 5+
ColdBox 6+
Installation
Install CommandBox.
Within the root of your project, run:
box install cbwireIf you want the latest bleeding edge, run:
box install cbwire@beLayout Setup
You need to add references for wireStyles() and wireScripts() to your layout file.
<!--- ./layouts/Main.cfm --->
<cfoutput>
<!DOCTYPE html>
<html lang="en">
<head>
<title>CBWIRE Example</title>
#wireStyles()#
</head>
<body>
<!--- JavasScript references below --->
#wireScripts()#
</body>
</html>
</cfoutput>CBWIRE will not work if you do not add these to your layout.
Inserting Wires
You can insert Wires anywhere in your layout or ColdBox views using wire( componentName ).
<!--- ./layouts/Main.cfm --->
<body>
<!--- Insert our task list wire here --->
#wire( "TaskList" )#
<!--- JavasScript references below --->
#wireScripts()#
</body><!--- ./views/someview.cfm --->
<cfoutput>
<div>#wire( "TaskList" )#</div>
</cfoutput>Last updated
Was this helpful?