Skip to main content
Ben Nadel at Scotch On The Rock (SOTR) 2010 (Munich) with: Jens Hoppe
Ben Nadel at Scotch On The Rock (SOTR) 2010 (Munich) with: Jens Hoppe ( @jens_hoppe )

Nesting ColdFusion Custom Tag Snippet

By
Published in

Just an FYI, I have just added my small nested tags demo to my ColdFusion snippets directory.

One other note. I built it in, but didn't demo it. The Item.cfm custom tag can tag data either in the value attribute or as generated content. Therefore, the following tags would all produce the same content:

<!--- Add item. --->
<cf_item>
	Sarah Vivenzio
</cf_item>

<!--- Add item. --->
<cf_item
	value="Sarah Vivenzio"
	/>

<!--- Add item. --->
<cf_item value="Sarah Vivenzio">

Want to use code from this post? Check out the license.

Reader Comments

I believe in love. I believe in compassion. I believe in human rights. I believe that we can afford to give more of these gifts to the world around us because it costs us nothing to be decent and kind and understanding. And, I want you to know that when you land on this site, you are accepted for who you are, no matter how you identify, what truths you live, or whatever kind of goofy shit makes you feel alive! Rock on with your bad self!
Ben Nadel