Skip to main content

All Questions

Tagged with
2 votes
0 answers
840 views

Google map is not working in Pug/Jade

I have to implement google map in my website developed using Pug/Jade. The pug file is compiled using Grunt. The script follows ES6 syntax. I am using require.js also But Google map is not obtained. ...
Surya Raj M's user avatar
  • 1,098
2 votes
1 answer
1k views

Pug file compilation returns an error of mixins.pug is not found

I am new to pug/jade. I have 3 pug template files named "layout.pug", "home.pug" and "mixins.pug". The layout.pug contains following code: html include mixins body include home The code in ...
Surya Raj M's user avatar
  • 1,098
1 vote
0 answers
331 views

Pug (Jade) templates: automatically update references to scripts and stylesheets with fingerprinted version in CDN

I am working on a Koa.js application with Pug as the template engine. I would like to create an automated process so that the production templates have the URLs of the JavaScript and CSS files updated ...
Carlos Rodriguez's user avatar
0 votes
1 answer
120 views

Sync delete .html files corresponding to .pug files between src/ and dist/

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): compile: options: pretty: false ...
Audun Olsen's user avatar
2 votes
2 answers
3k views

Using Pug (Jade) with Jinja2 tempting syntax

I use grunt with Pug (Jade) to render my HTML templates. I want to incorporate Jinja2 syntax in my Pug files but when I run grunt to build the HTML files it fails because it does not recognize the ...
LBoy's user avatar
  • 71
2 votes
1 answer
252 views

Grunt task to change names of css class inside css files and htmls or jade's

I wonder are there any Grunt tasks which can change names of classes to something unique? For e.g. .container -> .uniqueName_container or just some random letters or number like google: .container ...
Kinga's user avatar
  • 386
1 vote
1 answer
2k views

Grunt - Compile Multiple Jade Files using the Pug plugin

I have a Laravel directory structure and I have my Jade templates in the /resources/assets/jade/ folder. Inside this folder will have multiple sub-directories which I will need to copy their exact ...
Kravitz's user avatar
  • 2,839
0 votes
1 answer
80 views

Grunt. Compile all .jade files when child (_*.jade) included

I have next structure: jade ├── _skeleton.jade ├── _header.jade ├── _footer.jade | ├── includes │ └── _include-on-index.jade │ └── _include-on-page-1.jade │ └── _include-on-all-pages.jade | ├── pages ...
Kholiavko's user avatar
  • 334
2 votes
1 answer
41 views

Different grunt tasks for watch and sass

I have a grunt project and I am using sass and jade together. I want to have a task for sass when developing where the style would be expanded for troubleshooting and a task for when I 'finish' the ...
user avatar
3 votes
1 answer
119 views

Set base directory jade, grunt, compass on external files

I am using jade grunt and compass to produce a site, and instead of havving to type the correct path to files within jade file e.g.: link(href='../../../../stylesheets/sections/pdp.css' I was ...
user1937021's user avatar
  • 10.6k
0 votes
1 answer
30 views

Compile Jade to Relative Folder with Grunt

I am using grunt to compile my Jade files. My folder structure looks like this -blocks -header -jade header.jade -html -nav ... What I want to do is ...
dunika's user avatar
  • 220
0 votes
1 answer
128 views

task jade not found when running grunt

When I run grunt with the following Gruntfile, I get the error Warning: task "jade" not found. what exactly could be wrong here? module.exports = function(grunt) { grunt.initConfig({ jade: ...
user1937021's user avatar
  • 10.6k
0 votes
1 answer
179 views

setting up jade in gruntfile.js

So i'm trying to set up jade in my App, when i do a grunt build i get a Running "postcss:dist" (postcss) task 1 processed stylesheet created. No "concat" targets found. Warning: Task ...
ronoc4's user avatar
  • 645
1 vote
1 answer
202 views

Using grunt to compile jade templates to javascript functions in sails.js

I am building an application in Sails.js and i want to compile some jade templates to javascript functions for use from the client. I have found a few articles explaining how to do this, but when i ...
zcesl53's user avatar
  • 53
1 vote
2 answers
410 views

Making Grunt automatically remove files that are deleted

I use Grunt to automate converting my jade files. For that I use this script: jade: { compile: { options: { client: false, pretty: true ...
Arash Saidi's user avatar
  • 2,238

15 30 50 per page
1
2 3 4 5