couchrest_model/lib/couchrest/helper/app-template/forms/example-form.js
2009-01-08 10:00:36 -08:00

16 lines
No EOL
324 B
JavaScript

function(doc, req) {
// !code lib.helpers.template
// !json lib.templates
respondWith(req, {
html : function() {
var html = template(lib.templates.example, doc);
return {body:html}
},
xml : function() {
return {
body : <xml><node value={doc.title}/></xml>
}
}
})
};