Re: ColdFusion Template Engine?

2007-07-05 Thread Josh Eby
Jeff I wrote a template parser about 6 years ago that I never released but would be willing to share the code if you're interested in seeing it. It's documented here: The code is hideous, it's CF 4.5 era code and I wrote it obviously a long long time ago :)

Re: ColdFusion Template Engine?

2006-10-31 Thread Peter Boughton
Is there something specificly SMARTY-like you're trying to do? Only I can't see any relevant benefit in using obscure PHP-like syntax for this. I would d suggest just using regular variables and packaged custom tags, eg: t:section name=sec1 loop=contacts phone: #phone#br/ fax:

Re: ColdFusion Template Engine?

2006-10-31 Thread Jeff Chastain
Is there something specifically SMARTY-like you're trying to do? I am still tossing this around trying to figure out the right way to go about it. I have developed applications in the past and am working on a new one now where it is desired to not only separate the presentation from the

ColdFusion Template Engine?

2006-10-30 Thread Jeff Chastain
I am in need of a template engine similar to Smarty (PHP) for ColdFusion? I have not found such a thing yet. Does it exist? If not, how would you go about writing a parser in ColdFusion that could take a template like this ... -- The current

Re: ColdFusion Template Engine?

2006-10-30 Thread Rick Root
Jeff I wrote a template parser about 6 years ago that I never released but would be willing to share the code if you're interested in seeing it. It's documented here: The code is hideous, it's CF 4.5 era code and I wrote it obviously a long long time ago :)

RE: ColdFusion Template Engine?

2006-10-30 Thread Rick Faircloth
The code is hideous, it's CF 4.5 era code Hey!!! I resemble that remark!!! :o) Rick -Original Message- From: Rick Root [mailto:[EMAIL PROTECTED] Sent: Monday, October 30, 2006 2:44 PM To: CF-Talk Subject: Re: ColdFusion Template Engine? Jeff I wrote a template parser about 6

Re: ColdFusion Template Engine?

2006-10-30 Thread Barney Boisvert
I've used ClearSilver (www.clearsilver.net) in a few CF apps with great success. I've never used Smarty, but I haven't found ClearSilver much lacking. It's definitely a templating engine; it's got no brains, but tha'ts exactly what we were looking for. You can build macros, use includes, and

Re: ColdFusion Template Engine?

2006-10-30 Thread Jeff Chastain
Barney, I have looked at ClearSilver before, I just have not liked its syntax. I like for the templates to be able to be verified on their own and ClearSilver is not xhtml compliant. I am not sure if Smarty is or not. Thanks for the pointer.

Re: ColdFusion Template Engine?

2006-10-30 Thread Barney Boisvert
You can verify the templates by parsing them without rendering (using an empty dataset). That way you can give immediate feedback to your users when they edit them. As for xhtml compliance, ColdFusion isn't compliant either. If that's not for you, it's simple to write a command processor that