Nunjucks is a rich and powerful templating language for JavaScript. gulp-nunjucks-render is a gulp plugin which renders Nunjucks templates. Use this tag for questions regarding rendering nunjucks templates with gulp, using the gulp-nunjucks-render plugin.
Questions tagged [gulp-nunjucks-render]
32 questions
0
votes
1 answer
JSON data in nunjucks templating, using gulp-data
I would like to use JSON data inside of nunjucks "set". A minimal example:
index.html
{% set divname='foo' %}
{% include 'template.nunjucks' %}
template.nunjucks
Which works great. I would like to move data, for…

KayakinKoder
- 3,243
- 3
- 23
- 37
0
votes
1 answer
gulp-nunjucks-render include paths
I have a project set up like this:
and I'm using gulp-nunjucks-render for templating. My gulpfile.js looks like this:
gulp.task('nunjucks', function() {
// Gets .html and .nunjucks files in pages folder
return…

Meek
- 3,086
- 9
- 38
- 64