Skip to content
This repository has been archived by the owner on Jun 23, 2021. It is now read-only.

Commit

Permalink
send partials
Browse files Browse the repository at this point in the history
  • Loading branch information
yyolk committed Mar 1, 2015
1 parent 7d10dd6 commit e7138b4
Showing 1 changed file with 12 additions and 2 deletions.
14 changes: 12 additions & 2 deletions lists/show.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
function (head, req) {
// !json templates.entryview
// !json templates.show.header
// !json templates.show.section
// !json templates.show.footer
var Mustache = require('vendor/couchapp/lib/mustache');

// specify that we're providing a JSON response
Expand Down Expand Up @@ -32,6 +34,14 @@ function (head, req) {

});
provides('html', function() {

send(Mustache.to_html(templates.show.header,
{}
));
send(Mustache.to_html(templates.show.section,
{}
));
send(Mustache.to_html(templates.show.footer,
{}
));
});
}

0 comments on commit e7138b4

Please sign in to comment.