Getting Started
With CommandBox, you can start building reactive CFML apps in seconds.
- Adobe ColdFusion 2018+ or Lucee 5+
- ColdBox 6+
Within the root of your project, run:
box install cbwire
If you want the latest bleeding edge, run:
box install [email protected]
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.
<!--- ./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 modified 2mo ago