json - Providing data models to use in Gulp Nunjucks templates -



json - Providing data models to use in Gulp Nunjucks templates -

i'm looking utilize gulp render nunjucks templates either gulp-nunjucks or gulp-nunjucks-render. there way can pass 1 or series of .json files templating bundle utilize json info in nunjucks templates?

ideally i'd have models/ directory each page having corresponding page.json file contents used in template.

i'd know if it's possible either of above plugins , if how can implemented. examples single or series of .json files useful.

look using gulp-data https://www.npmjs.org/package/gulp-data produces json source, json file, or database, sends downwards stream via new attribute on file object (file.data). nunjucks plugin need modified consume info property.

json gulp nunjucks

Comments

Popular posts from this blog

formatting - SAS SQL Datepart function returning odd values -

c++ - Apple Mach-O Linker Error(Duplicate Symbols For Architecture armv7) -

php - Yii 2: Unable to find a class into the extension 'yii2-admin' -