Hi Jeff,
Don't forget that Velocity and Freemarker are also good candidates for
server side templating and with clojure's java integration a snap to
use, e.g. ...
(defn genSyntaxHiLight
[] (let [fmc (freeMarkerConfig)
tmpl (. fmc getTemplate "clojure.ftl")
map (clj-n
Rich Hickey wrote:
>
>
> 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, w
You can find a little demo I put together for lauofdk here:
http://www.ipowerhouse.com/lau.zip
It is exactly what ppierre mentioned, clojure servlets returning
json with a jquery/pure client "hello world".
the dl includes jetty, and can be fired up with
./run test.clj
test.clj configures j
A nice solution is PURE : http://beebole.com/pure/ JavaScript
templating engine converting Json to HTML.
With a Clojure version you have identical code for HTML and AJAX :
Server side :
Clojure/PURE + HTML -> HTML
Client side :
Clojure/JSON -> JavaScript/PURE + AJAX
pierre
--~--~-~--~
> StringTemplate http://www.stringtemplate.org/
In StringTemplate's case, the design was more than a stylistic issue;
the author wanted a specific kind of separation between the template
and the business logic. He wrote a short paper on the subject (see
his website for details), which is worth r
On Dec 4, 9:04 am, Rich Hickey <[EMAIL PROTECTED]> wrote:
> StringTemplate http://www.stringtemplate.org/
StringTemplate looks cool -- a functional, context-free template
language, with a less annoying syntax than either ERB or Google XML
Pages. From the author: "Just so you know, I've never bee
On Thursday 04 December 2008 06:04, Rich Hickey wrote:
> ...
>
> StringTemplate
> http://www.stringtemplate.org/
StringTemplate, by the way, is how ANTLR generates its parser code
(ANTLR is target-language-neutral, not Java-specific).
> ...
>
> Rich
Randall Schulz
--~--~-~--~~--
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
> templa
Ok, that makes sense. I'll do it. What about the other options
available in erb though? Do we use this:
*
Will '' pass for valid xml?
-Jeff
Stuart Sierra wrote:
> On Dec 3, 1:04 pm, Jeff Rose <[EMAIL PROTECTED]> wrote:
>> I've just pushed a template library for Clojure up onto github
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.
Cool! One thing to consider, a noted flaw in ERB: use real XML
processing instructions, like "" instead of "<%= .. %>".
That way your template can be a valid
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
11 matches
Mail list logo