moved app template

This commit is contained in:
Chris Anderson 2009-01-08 09:50:45 -08:00
parent 9faa9daaca
commit 5d3e684c6a
11 changed files with 4 additions and 3 deletions

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