Project Home • Blog • Wiki • Known Issues • Contact Project
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.
There are no issues for this project.
To enter issues for this (or any other) project, you must be logged in.
Adobe and the Adobe product names are either registered trademarks or trademarks of Adobe Systems Incorporated in the United States and/or other countries.