couchrest_model/lib/couchrest/helper/template-app/forms/example-form.js

14 lines
279 B
JavaScript
Raw Normal View History

2009-01-02 07:29:39 +01:00
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>
}
}
})
};