Custom Tags

Lucee allows extending the language with custom tags to add functionality to view templates. Custom tags are typically used for view logic. Custom tags are created with CFCs and then imported into a view, or Application.cfc

This article shows a brief example, then read these additional articles:

  1. Calling Custom Tags
  2. Creating Custom Tags

Example View with a Custom Tag

Consider the following HTML template which uses a custom tag, called greeting.

When running this script, it will output:

Hello Jim Smith,

The time is 06:43 AM

The .cfm html template used a custom tag called greeting, passed a firstname & lastname to it, and the greeting tag generated the text for output.

Here is what the greeting.cfc custom tag looks like. The article on Creating Custom Tags explains in depth.

results matching ""

    No results matching ""