carlitoplatanito / gulp-nunjucks-render

[Gulp](https://github.com/wearefractal/gulp) plugin to render [Nunjucks](http://mozilla.github.io/nunjucks/) templates
149 stars 33 forks source link

Is it possible to add custom tags? #8

Closed michaeldewayneharris closed 9 years ago

michaeldewayneharris commented 9 years ago

http://mozilla.github.io/nunjucks/api.html#custom-tags

I cant seem to find the proper Environment variable.

michaeldewayneharris commented 9 years ago

I did find an environment variable like this: var env = new $.nunjucksRender.nunjucks.Environment(); but i dont believe that there is anyway to get nunjucksrender to use it

michaeldewayneharris commented 9 years ago

Found it. the environment variable is returned by configure so....

var env = $.nunjucksRender.nunjucks.configure(['app']);

You might want to add this to the documentation in case anybody else has this issue.

Sorry for the false bug report.