couchdb-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Axel Johnsson <>
Subject Armrest - Another way of doing CouchApps
Date Thu, 05 May 2011 19:44:50 GMT
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:
  public/ // Attachments

Take a look at Github:

  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message