Login

    Register

This is to notify all, that we will be decommissioning http://riaforge.org/ ("Site") soon. This decision has been taken due to business reasons. If you are interested in reviewing or downloading any project or files available at Site, please do so, by April 16, 2019, 12 noon PST , as per license terms associated therewith. Past that, you will not be able to access the projects or files.Should you have any concerns/suggestions/query, feel free to Contact Us.
Managed Hosting

PROJECT CATEGORIES

 

CF Template
Project Home Blog Wiki Known Issues Contact Project

Author: Peter Bell (All RIAForge projects by this author)
Last Updated: December 3, 2009 11:53 AM
Version: 0.1
Views: 43,923
Downloads: 1,194
License: Apache License, Version 2

Description:

Why use XSLT or Velocity when ColdFusion already has a much more powerful and extensible templating language built in?

CFTemplate is a templating language built on ColdFusion that allows you to use the power of ColdFusion to generate anything from documentation to ColdFusion code (or Ruby, Java, XML . . .). It allows you to use any type of data (recordset, iterating business object, XML, etc.) and any valid ColdFusion code within your templates.

For generation time tags just replace < with <<, > with >> and for generation time variables just replace # with % (and as with # signs, if you need a real % sign, just escape it by putting %%).

CF Template is a single cfc that just takes a template filepath, a destination filepath, a scratchpad filepath (for performing the transformation) and metadata (any data type - object, struct, array, XML, etc.) and performs the transformation. Simple, but very useful.

This can be used on its own or as part of cfgen for a complete application generation solution.

PLEASE NOTE: Latest code now hosted on github. http://github.com/PeterBell/cftemplate That's the only repo I'll be keeping up to date, so please pull from there.

Issue Tracker:

There are no issues for this project.

To enter issues for this (or any other) project, you must be logged in.


This is to notify all, that we will be decommissioning http://riaforge.org/ ("Site") soon. This decision has been taken due to business reasons. If you are interested in reviewing or downloading any project or files available at Site, please do so, by April 16, 2019, 12 noon PST , as per license terms associated therewith. Past that, you will not be able to access the projects or files.Should you have any concerns/suggestions/query, feel free to Contact Us.