grunt-contrib-pug | Compile Pug templates
kandi X-RAY | grunt-contrib-pug Summary
kandi X-RAY | grunt-contrib-pug Summary
Compile Pug templates.
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 grunt-contrib-pug
grunt-contrib-pug Key Features
grunt-contrib-pug Examples and Code Snippets
Community Discussions
Trending Discussions on grunt-contrib-pug
QUESTION
According to the readme of pug-html-loader, the loader accepts a data
object which is being passed as part of the options
to the template. While not available on the options
within the pug API reference, a grunt plugin I've found (grunt-contrib-pug) uses the API the same way.
I've specified the following options for the loader:
...ANSWER
Answered 2017-Jun-07 at 20:53You should reference data directy (i.e. without prefixing the fields with data
)
So you should change your code like so:
QUESTION
I use grunt-contrib-pug to compile my .pug files from src/ and distribute the corresponding .html files to dist/. Here is my pug-task config (written in .coffee):
...ANSWER
Answered 2017-Feb-17 at 02:17As referenced by I-LOVE-2-REVIVE, I looked further into Grunt's file API, and on that basis, this is the solution I came up with:
Community Discussions, Code Snippets contain sources that include Stack Exchange Network
Vulnerabilities
No vulnerabilities reported
Install grunt-contrib-pug
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