Thanks. This looks awesome.
On May 27, 10:28 am, ritchie turner <black...@ipowerhouse.com> wrote:
> Hi there
>
> Find attached some code that uses apache velocity for command line based
> processing, i.e. it's not setup for servlets; i use this as an offline
> pre processor for web sites.
>
> It does hierarchical templating of files in a source directory and
> copies to a target directory. The templating maps are contained in (by
> default) __pp.clj files in the source tree. Further, your __pp.clj maps
> can also contain functions for dynamically populating the template.
>
> The nice thing is that each directory can contain it's own __pp.clj file
> each of which can override it's parent definitions (in a zope like
> 'aquisition').
>
> Processing can also be controlled by passing command line arguments
> which are added to the templates top level context.
>
> It's not documented, but if anyone is interested I can do some.
>
> cheers
>
> bd
>
> On Tue, 2009-05-26 at 19:47 -0700, markgunnels wrote:
> > Hopefully this doesn't get me booed off the message board but is there
> > a Clojure equivalent to Ruby's ERB? I'm try to use Clojure to perform
> > code generation and, while it makes for an excellent language to write
> > a parser in, I can't quite figure out the best way to actually
> > template out the code.
>
> > Thanks for any help,
> > Mark
>
> > P.S. Rich -- if you read this, Clojure is terrific.
>
>
>
> pp.clj
> 6KViewDownload
>
> __pp.clj
> < 1KViewDownload
>
> __pp.clj
> < 1KViewDownload
--~--~---------~--~----~------------~-------~--~----~
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
clojure+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/clojure?hl=en
-~----------~----~----~----~------~----~------~--~---