nunjucks-cli | Simple Nunjucks CLI wrapper and templates watcher | Runtime Evironment library
kandi X-RAY | nunjucks-cli Summary
kandi X-RAY | nunjucks-cli Summary
Simple Nunjucks CLI wrapper and templates watcher
Support
Quality
Security
License
Reuse
Top functions reviewed by kandi - BETA
Currently covering the most popular Java, JavaScript and Python libraries. See a Sample of nunjucks-cli
nunjucks-cli Key Features
nunjucks-cli Examples and Code Snippets
Community Discussions
Trending Discussions on nunjucks-cli
QUESTION
I need a simple npm script to have includes in my html file to make it modular, it shouldn't be a gulp/grunt/webpack plugin, just a regular npm-lib, like node-sass or whatever.
I tried to use nunjucks/twig/html-importer - they all haven't any watch options, so if you know what I'm seeking - sharing would be appreciated!
UPD: or maybe if anyone has any ideas how to watch nunjucks templates and run build on changes - I will be happy to see your solution as a line of npm-script. nunjucks-cli doesn't work.
...ANSWER
Answered 2017-Mar-01 at 15:14Ok, I've found a solution.
I still used nunjucks-cli, but I used to play with paths, and looks like they were required to be written in quotes, instead of example's version, so script "nunjucks -w -u '*.tpl' -o ./"
works fine
Community Discussions, Code Snippets contain sources that include Stack Exchange Network
Vulnerabilities
No vulnerabilities reported
Install nunjucks-cli
Support
Reuse Trending Solutions
Find, review, and download reusable Libraries, Code Snippets, Cloud APIs from over 650 million Knowledge Items
Find more librariesStay Updated
Subscribe to our newsletter for trending solutions and developer bootcamps
Share this Page