couchdb-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Roger Binns <rog...@rogerbinns.com>
Subject Re: Javascript templating for shows/lists
Date Wed, 09 Dec 2009 20:17:23 GMT
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

James Marca wrote:
> Coming late to this thread, but the Apache Sling project uses ESP
> (http://www.plenix.org/esp/), which defines itself as follows: "ESP
> (EcmaScript Pages) is a servlet add-on that allows you to write
> servlets directly in JavaScript and Html while retaining all the power
> of the Java language and the servlet object model."  This probably
> can't be embedded into CouchDB as is, but might provide ideas for
> other js templating approaches.

That exact syntax works in John Resig's micro-templating and underscore.

In the end I resorted to writing my own templating library because while
mustache.js is the best out there, it requires two passes if you have
helpers (eg functions that generate img tags or form fields).

I also wanted something that meets all the best practises.

Roger
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.9 (GNU/Linux)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org

iEYEARECAAYFAksgBdMACgkQmOOfHg372QQ4QgCgnvTSAXPkzGr/SO8Fe1Tbgrk8
ngoAnREp/Rt9kTSDXBJGqLwipTKpPiNV
=1wZD
-----END PGP SIGNATURE-----

Mime
View raw message