On Dec 3, 1:04 pm, Jeff Rose <[EMAIL PROTECTED]> wrote:
> I've just pushed a template library for Clojure up onto github for
> public use.  You can find it here:
>
> http://github.com/rosejn/clj-libs/tree/master
>
> This library is based loosely on erb from Ruby, which is the only other
> template system I've used, and it allows you to insert Clojure
> scriptlets inside a text document.  Following is a short example of how
> it currently works.  Any thoughts, suggestions or feedback are welcome.
>   I plan on making it easier to instantiate pages by passing a hash, or
> maybe a sequence of hashes, which will be successively bound for you.
> I'll probably add some configuration options for handling whitespace and
> trimming newlines too.  Any other ideas or patches welcome.
>

Neat! One thing I recommend is that you consider taking a functional
approach to templates - it would be much more in line with Clojure.
Two examples of a more functional approach are:

StringTemplate
http://www.stringtemplate.org/

Google XML Pages
http://code.google.com/p/gxp/

Rich

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"Clojure" group.
To post to this group, send email to clojure@googlegroups.com
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/clojure?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to