Chapter 21. Creating Custom Tags

One of the most powerful features of ColdFusion is the ability to extend the core capabilities of the platform through custom tags. Custom tags allow you to encapsulate code in a neat wrapper that can then be invoked from within any CFML template. Those familiar with other programming languages can think of custom tags as similar to subroutines or procedures.

There are two varieties of custom tags: custom CFML tags (referred to as custom tags) and CFX tags. Because developing CFX tags requires C++ or Java experience, this chapter focuses on the development and use of custom tags, since they are written in CFML. A brief section at the end of the chapter discusses installing and calling CFX tags.

Get Programming ColdFusion MX, 2nd Edition now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.