Created
August 24, 2017 12:58
-
-
Save dataday/cb7ae6d03475e43374d939aaf7c2539e to your computer and use it in GitHub Desktop.
nunjucksRender Filters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
... | |
nunjucksRender: { | |
manageEnv: function(env) { | |
const utils = new Utils(); | |
env.addFilter('split', utils.splitFilter); | |
env.addFilter('get', utils.getFilter); | |
env.addFilter('is', utils.isFilter); | |
env.addFilter('classify', utils.classifyFilter); | |
} | |
} | |
... |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment