simplyfy couchapp push

This commit is contained in:
Chris Anderson 2009-01-01 22:29:39 -08:00
parent 98ff079093
commit a10d902d71
8 changed files with 96 additions and 29 deletions

View file

@ -0,0 +1,14 @@
function(doc, req) {
// include-lib
respondWith(req, {
html : function() {
var html = template(lib["example.html"], doc);
return {body:html}
},
xml : function() {
return {
body : <xml><node value={doc.title}/></xml>
}
}
})
};