diff options
author | Samy Pessé <samypesse@gmail.com> | 2016-02-21 00:42:11 +0100 |
---|---|---|
committer | Samy Pessé <samypesse@gmail.com> | 2016-02-21 00:42:11 +0100 |
commit | b4cdbc6534b12d4547898077b7d5b2fd2b2163d0 (patch) | |
tree | 25f8b6c194760523fa979a31cf6b076dd6c5905d /lib/template/index.js | |
parent | 0a93ffd76ba574de5afaad73954c287ae40143d5 (diff) | |
download | gitbook-b4cdbc6534b12d4547898077b7d5b2fd2b2163d0.zip gitbook-b4cdbc6534b12d4547898077b7d5b2fd2b2163d0.tar.gz gitbook-b4cdbc6534b12d4547898077b7d5b2fd2b2163d0.tar.bz2 |
Add custom filters for dates to templating engine
Diffstat (limited to 'lib/template/index.js')
-rw-r--r-- | lib/template/index.js | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/lib/template/index.js b/lib/template/index.js index a2d00b5..a130088 100644 --- a/lib/template/index.js +++ b/lib/template/index.js @@ -7,6 +7,7 @@ var Promise = require('../utils/promise'); var error = require('../utils/error'); var parsers = require('../parsers'); var defaultBlocks = require('./blocks'); +var defaultFilters = require('./filters'); var Loader = require('./loader'); // Return extension name for a specific block @@ -59,8 +60,9 @@ function TemplateEngine(output) { // Bind methods _.bindAll(this); - // Add default blocks + // Add default blocks and filters this.addBlocks(defaultBlocks); + this.addFilters(defaultFilters); } // Bind a function to a context |