In this chapter, we have created a number of custom tags in order to understand each of these concepts. We have custom tags for the page, head, header, footer, sidebar, and sidebar_item. We have explained how to create a number of them. The other tags are built in a similar manner. We also learned how to integrate cfinclude
for libraries of segments. Including files inside CFCs should be avoided in general due to thread safety issues unless you deeply understand how ColdFusion thinks. This is another area where custom tags work better.
We have covered the following in this chapter:
Custom tags
Passing attributes into a custom tag
Using nested tags
Skinning a website by using custom tags
Where to store custom tags
Different methods of calling custom tags
<cf_>
<cfmodule>
<cfimport>