You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@couchdb.apache.org by Apache Wiki <wi...@apache.org> on 2010/09/30 21:42:38 UTC

[Couchdb Wiki] Update of "Generating HTML from Javascript shows and lists" by BenjaminYoung

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: