About 4 years, I wrote a publishing tool allowing neighborhoods and the
like to easily publish and maintain their own web sites... totally
web-based admin. The only HTML needed was in the template design.
I wanted the users to be able to design their own templates, but with
dynamic elements... ie, some things only appear if the user is logged
in, and the ability to generate a dynamic list of custom pages, control
of things appearing based on whether or not they are disabled in the
administration, etc...
So I developed my own little template "markup language", and wrote some
cold fusion code to parse the templates and generate the HTML on the fly.
The details of these special markup tags are here:
http://www.clicksitecommunities.com/index.cfm?PAGE_ID=8
the template parser is not complicated, it's just a bunch of find and
replaces, really, I'm not even using any regular expressions (I bet I
could simplify the code dramatically if I did)
My question: How are other people doing this kind of thing?
I've got another application that I'm building where I'd like to allow
people to custom design templates with similarly dynamic content, and I
suspect that this solution, while it obviously works, may not be the best.
- Rick
[Todays Threads]
[This Message]
[Subscription]
[Fast Unsubscribe]
[User Settings]
[Donations and Support]