Created
November 6, 2014 03:28
-
-
Save sixlettervariables/55bb677e3c2cd2fca047 to your computer and use it in GitHub Desktop.
Example Adaro/Dustjs additional helpers configuration
This file contains hidden or 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
"view engines": { | |
"js": { | |
"module": "engine-munger", | |
"renderer": { | |
"method": "js", | |
"arguments": [ | |
{ | |
"cache": true, | |
"helpers": [ | |
{ | |
"name": "dustjs-helpers", | |
"arguments": [] | |
}, | |
{ | |
"name": "./lib/helpers/cdn", | |
"arguments": [ | |
{ | |
"cdn": "cdn$.xyz.com", | |
"arity": 4 | |
} | |
] | |
} | |
] | |
}, | |
{ | |
"views": "config:express.views", | |
"view engine": "config:express.view engine", | |
"specialization": "config:specialization", | |
"i18n": "config:i18n" | |
} | |
] | |
} | |
} | |
}, |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Worth noting, perhaps, that anything that doesn't take arguments (other than the implicit
dust
) such as ...... can be replaced with ...
"dustjs-helpers"
... if you don't mind the mix of objects and strings in your helpers array.