sindresorhus / gulp-nunjucks

Precompile Nunjucks templates
MIT License
152 stars 20 forks source link

Using absolute url in include #11

Closed suenot closed 8 years ago

suenot commented 8 years ago

How to use absolute url in includes like this {% include '/testBlock/testBlock.html' %}? How to set a base folder for absolute paths?

Gulp-jade, for example, had option basedir:

    .pipe(jade({
        basedir: 'assets'
    }))
sindresorhus commented 8 years ago

This plugin supports any options Nunjucks provides. You would have to ask there or on Stack Overflow.