User Guide
C HAPTER 7
Chapter 7 Reusing Code
This chapter describes how to reuse common code with CFINCLUDE, and create
custom CFML tags that encapsulate common code.
Contents
• Ways to Reuse Code ......................................................................................... 72
• Reusing Common Code with CFINCLUDE.................................................... 72
• About Custom Tags in CFML........................................................................... 73
• Using Existing Custom Tags ............................................................................ 73
• Writing Custom CFML Tags............................................................................. 73
• Passing Attribute Values between Custom Tags ............................................ 74
• Nesting Custom Tags........................................................................................ 77
• Passing Data Between Nested Custom Tags .................................................. 78
• Executing Custom Tags.................................................................................... 82
• Installing Custom Tags..................................................................................... 85
• Managing Custom Tags ................................................................................... 85