chore(docs): add dump filter for debugging templates

This commit is contained in:
Drew Rygh
2015-12-01 14:21:10 -06:00
parent 85e773b56b
commit 711e28c77d
2 changed files with 8 additions and 1 deletions

View File

@@ -148,7 +148,8 @@ module.exports = function(currentVersion){
// add custom filters to nunjucks
templateEngine.filters.push(
require('./filters/capital'),
require('./filters/code')
require('./filters/code'),
require('./filters/dump')
);
templateFinder.templateFolders.unshift(path.resolve(__dirname, 'templates'));

View File

@@ -0,0 +1,6 @@
module.exports = {
name: 'dump',
process: function(obj) {
console.log(obj);
}
};