couchrest_model/lib/couchrest/helper/template-app/forms/example-form.js
2009-01-01 22:29:39 -08:00

14 lines
No EOL
279 B
JavaScript

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>
}
}
})
};