Printing output within the custom tag |
||
Calling HTML | Custom Tag | Output |
---|---|---|
<h2>My Custom Tag </h2> <cf_mapColumns name="Steve"> |
Hello <cfoutput>#attributes.name#</cfoutput>!! | My Custom TagHello Steve!! |
Printing output after the custom tag with .caller |
||
Calling HTML | Custom Tag | Output |
---|---|---|
<h2>My Custom Tag </h2> <cf_mapColumns value=20> <cfoutput>#newValue#</cfoutput> |
<cfset caller.newValue = attributes.value * 2> | My Custom Tag40 |
Get a value from the Custom Tag that was created with cfscript |
||
Calling HTML | Custom Tag | Output |
---|---|---|
<h2>My Custom Tag </h2> <cf_mapColumns pgresColName="City"> <cfoutput>#newColumn#</cfoutput> |
<cfscript> if(col == 'bedrooms') result = 'BR'; <cfset caller.newColumn = #result#> |
My Custom TagCIT |