simplyfy couchapp push
This commit is contained in:
parent
98ff079093
commit
a10d902d71
8 changed files with 96 additions and 29 deletions
14
lib/couchrest/helper/template-app/forms/example-form.js
Normal file
14
lib/couchrest/helper/template-app/forms/example-form.js
Normal 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>
|
||||
}
|
||||
}
|
||||
})
|
||||
};
|
Loading…
Add table
Add a link
Reference in a new issue