View MyTag.cfm
<cfswitch expression="#thistag.executionMode#"> | |
<cfcase value="start"> | |
[ | |
</cfcase> | |
<cfcase value="end"> | |
] | |
</cfcase> | |
</cfswitch> |
View example11.cfm
<!--- Import custom tag libraries. ---> | |
<cfimport prefix="core" taglib="./core/" /> | |
<cfimport prefix="html" taglib="./core/html/" /> | |
<!--- // ------------------------------------------------------------------------- // ---> | |
<!--- // ------------------------------------------------------------------------- // ---> | |
<core:Email | |
subject="HTML Entites" | |
teaser="When you have unicode you don't need images!"> |
View snippet-1.cfm
<cfsavecontent variable="patternText" | |
>(?mx) | |
^ | |
<!--- | |
By wrapping the "blank line" in a repeating capture group, we use the | |
repeating nature of the pattern to replace adjacent lines rather than leaning | |
entirely on the "all" behavior of the reReplace() function. | |
---> | |
( | |
[\x20\x09]* |
View test.cfm
<cfscript> | |
// Setup our Tree for demonstration purposes. Each node in this tree is named based | |
// on its depth and its order at a particular depth. | |
tree = xmlParse(" | |
<a1> | |
<b1> | |
<c1> | |
<d1 /> | |
<d2 /> |
View code-sample.txt
<h1> | |
Hello world | |
</h1> | |
<p> | |
This is an inlined code sample file. | |
</p> | |
<p> | |
This is a really long line that will have to have some sort of wrapping in order to not break the layout. And, the following line is a really long line that has no whitespace. |
View Comment.cfm
<!--- Import custom tag libraries. ---> | |
<cfimport prefix="core" taglib="../core/" /> | |
<cfimport prefix="html" taglib="../core/html/" /> | |
<cfimport prefix="ex9" taglib="./" /> | |
<!--- Define custom tag attributes. ---> | |
<cfparam name="attributes.commentCreatedAt" type="date" /> | |
<cfparam name="attributes.commentText" type="string" /> | |
<cfparam name="attributes.margins" type="string" default="none xlarge" /> | |
<cfparam name="attributes.userAvatarUrl" type="string" default="" /> |
View Avatar.cfm
<!--- Import custom tag libraries. ---> | |
<cfimport prefix="core" taglib="../core/" /> | |
<cfimport prefix="html" taglib="../core/html/" /> | |
<!--- Define custom tag attributes. ---> | |
<cfparam name="attributes.fontSize" type="numeric" default="14" /> | |
<cfparam name="attributes.imageUrl" type="string" default="" /> | |
<cfparam name="attributes.initials" type="string" default="" /> | |
<cfparam name="attributes.margins" type="string" default="none normal" /> | |
<cfparam name="attributes.size" type="numeric" default="36" /> |
View ImageGrid.cfm
<!--- Import custom tag libraries. ---> | |
<cfimport prefix="core" taglib="../core/" /> | |
<cfimport prefix="html" taglib="../core/html/" /> | |
<!--- // ------------------------------------------------------------------------- // ---> | |
<!--- // ------------------------------------------------------------------------- // ---> | |
<cfswitch expression="#thistag.executionMode#"> | |
<cfcase value="start"> | |
<cfoutput> |
View Body.cfm
<!--- Import custom tag libraries. ---> | |
<cfimport prefix="core" taglib="../core/" /> | |
<cfimport prefix="html" taglib="../core/html/" /> | |
<!--- // ------------------------------------------------------------------------- // ---> | |
<!--- // ------------------------------------------------------------------------- // ---> | |
<cfswitch expression="#thistag.executionMode#"> | |
<cfcase value="start"> | |
<cfoutput> |
NewerOlder