Skip to content

Commit

Permalink
Actually render the pagination in the template.
Browse files Browse the repository at this point in the history
  • Loading branch information
Zren committed May 27, 2014
1 parent f25829b commit 5b4aa8f
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion controllers/_template.js
Original file line number Diff line number Diff line change
Expand Up @@ -113,7 +113,10 @@ exports.example = function (req, res, next) {
});

//---
function preRender(){};
function preRender(){
// Pagination
options.paginationRendered = pagination.renderDefault(req);
};
function render(){ res.render('pages/_templatePage', options); }
function asyncComplete(){ preRender(); render(); }
async.parallel(tasks, asyncComplete);
Expand Down

0 comments on commit 5b4aa8f

Please sign in to comment.