couchdb-user mailing list archives

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

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.


View raw message