Skip to content

Instantly share code, notes, and snippets.

@bennadel
Created May 7, 2023 14:34
Show Gist options
  • Save bennadel/18ee60390d60b3f7f05c8d9c12ca483e to your computer and use it in GitHub Desktop.
Save bennadel/18ee60390d60b3f7f05c8d9c12ca483e to your computer and use it in GitHub Desktop.
Importing Multiple ColdFusion Custom Tag Directories Using The Same Prefix
<div>
<mark>[Checkbox]</mark>
</div>
<div>
<mark>[Radio]</mark>
</div>
<!--- Notice that are are grouping MULTIPLE PATHS under the SAME PREFIX (ui). --->
<cfimport prefix="ui" taglib="./design-system/checkbox/" />
<cfimport prefix="ui" taglib="./design-system/radio/" />
<p>
Product: <cfoutput>#server.coldfusion.productName#</cfoutput>
</p>
<!---
These are two different ColdFusion custom tags, pulled from two different
directories, but referenced under the same prefix (ui:).
--->
<ui:Checkbox>
<ui:Radio>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment