You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@couchdb.apache.org by Axel Johnsson <jo...@gmail.com> on 2011/05/05 21:44:50 UTC
Armrest - Another way of doing CouchApps
Hi everyone on the CouchDB mailing list!
I'm working on a project that I call Armrest. The goal is to make it even
simpler to create and develop CouchApps.
I borrow many ideas from Sinatra the Ruby web framework. Just like Sinatra
uses an app file, Armrest also does,
in this file all CouchDB views are defined, routes, and other preferences.
For templating it's Mustache, with separate view
and template files.
An example route:
get("/", function(req, res) {
res.render("index", {
view: "by_title" // CouchDB view
});
});
An example project directory:
app.js
public/ // Attachments
templates/
views/
Take a look at Github: https://github.com/axeljohnsson/armrest