sindresorhus / gulp-nunjucks

Precompile Nunjucks templates
MIT License
152 stars 20 forks source link

Configure #17

Closed mfundo closed 7 years ago

mfundo commented 7 years ago

Hi Sindresorhus,

Trying to use your gulp plugin but not sure how to pass through options that go into nunjucks.configure() ?

Another silly question, is there away I can avoid using relative paths for my includes? instead of: " ../../component/componentName/fileName.nunjucks " I want: " componentName/fileName.nunjucks "

Thanks

sindresorhus commented 7 years ago

Trying to use your gulp plugin but not sure how to pass through options that go into nunjucks.configure() ?

From the readme:

Options will be passed directly to the Nunjucks Environment constructor which will be used to compile templates.

Another silly question, is there away I can avoid using relative paths for my includes?

That would be a question for a Nunjucks support channel.