couchdb-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Apache Wiki <wikidi...@apache.org>
Subject [Couchdb Wiki] Update of "Generating HTML from Javascript shows and lists" by BenjaminYoung
Date Thu, 30 Sep 2010 19:42:38 GMT
Dear Wiki user,

You have subscribed to a wiki page or wiki category on "Couchdb Wiki" for change notification.

The "Generating HTML from Javascript shows and lists" page has been changed by BenjaminYoung.
The comment on this change is: updated template.js for CouchDB link.
http://wiki.apache.org/couchdb/Generating%20HTML%20from%20Javascript%20shows%20and%20lists?action=diff&rev1=6&rev2=7

--------------------------------------------------

   . '''Recommendation: '''Use mustache.js
  
  === John Resig's micro-templating ===
- This engine is a screenful of code described at http://ejohn.org/blog/javascript-micro-templating
(download a CouchDB version [[http://github.com/jchris/sofa/raw/master/vendor/couchapp/template.js|here]]).
 You can read about using it in the [[http://books.couchdb.org/relax/design-documents/shows#Using%20Templates|CouchDB
book]].  Example usage can be found in the [[http://github.com/jchris/sofa|Sofa blog application]].
 It does not do HTML escaping so you will need to be very careful.  The templating is not
HTML specific so you can generate other formats.  (The tags are HTML syntax though.)
+ This engine is a screenful of code described at http://ejohn.org/blog/javascript-micro-templating
(download a CouchDB version [[http://github.com/Damienkatz/TeaTime/raw/master/vendor/couchapp/template.js|here]]).
 You can read about using it in the [[http://books.couchdb.org/relax/design-documents/shows#Using%20Templates|CouchDB
book]].  Example usage can be found in the [[http://github.com/jchris/sofa|Sofa blog application]].
 It does not do HTML escaping so you will need to be very careful.  The templating is not
HTML specific so you can generate other formats.  (The tags are HTML syntax though.)
  
  This is an example of how to do conditionals:
  

Mime
View raw message