Login

    Register

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: 41,948
Downloads: 1,128
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.