moved app template
This commit is contained in:
parent
9faa9daaca
commit
5d3e684c6a
11 changed files with 4 additions and 3 deletions
17
lib/couchrest/helper/app-template/forms/example-form.js
Normal file
17
lib/couchrest/helper/app-template/forms/example-form.js
Normal file
|
@ -0,0 +1,17 @@
|
|||
function(doc, req) {
|
||||
// !include lib.templates
|
||||
|
||||
// !require lib.helpers.template
|
||||
|
||||
respondWith(req, {
|
||||
html : function() {
|
||||
var html = template(lib.templates.example, 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