couchdb-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Aliaksandr Barysiuk <a.barys...@gmail.com>
Subject Right place for mustache.js
Date Wed, 26 Sep 2012 11:44:20 GMT
Hello,

We're using mustache.js template engine in our lists/shows in the couchapp. Basically it is
included like 'var mustache 
= require(lib/mustache)'. Now we also need mustache.js on the client side. What is the best
place for it to avoid 
duplication? As i understand client can access to '_attachments' while lists/shows cannot.

And one extra question here: is it possible to load templates dynamically in the show or list?
We're able to include 
them statically via '!json templates.index'.

Thank's

Mime
View raw message