incubator-couchdb-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Matthieu Rakotojaona <matthieu.rakotoja...@gmail.com>
Subject Re: HTML documentation within a couch application
Date Thu, 27 Sep 2012 18:33:52 GMT
Hello,

This looks like a job for Mustache[1]. You could define a
docs.html.mustache template somewhere in a non-replicated folder, and
use couchapp's hooks[2] to render the template into a custom doc.html
before effectively pushing it to couchdb. You would only need a simple
config file that says what the hostname/proxy url is. I see in the
hook function that you even have a `dbs` object filled with the dbs
you're pushing to; this could be handy to you.


[1] http://mustache.github.com/
[2] https://github.com/couchapp/couchapp/blob/master/doc/extends.md
-- 
Matthieu RAKOTOJAONA

Mime
View raw message