change it to !include

This commit is contained in:
Chris Anderson 2009-01-02 01:59:33 -08:00
parent d6088be47f
commit 7644217add
8 changed files with 43 additions and 14 deletions

View file

@ -1,8 +1,11 @@
function(doc, req) {
// include-lib
// !include lib.templates
// !require lib.helpers.template
respondWith(req, {
html : function() {
var html = template(lib["example.html"], doc);
var html = template(lib.templates.example, doc);
return {body:html}
},
xml : function() {