carlitoplatanito / gulp-nunjucks-render

[Gulp](https://github.com/wearefractal/gulp) plugin to render [Nunjucks](http://mozilla.github.io/nunjucks/) templates

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Empty .ext is defaulting to .html if options.ext = ''

lukejamesk opened this issue · comments

commented

If I want to pass in an extension of nothing the plugin will default to .html. Sometimes it will be desired for us to pass in no extension as our template might be titled as "index.html.nunjucks"

We could change line 12
if(!options.ext) to if(options.ext === undefined) which will allow to pass in no extension