Skip to main content

All Questions

Tagged with
0 votes
1 answer
26 views

the gulp-pug doesn't work and say unexpected token "indent"

the gulp-pug doesn't work and say unexpected token "indent" see the images below gulp code and nodejs command prompt index.pug and nodejs command prompt package.json and nodejs command ...
M39ob Elzero's user avatar
1 vote
1 answer
68 views

Passing Pug variables from child template for use in parent template block

I'm working on a project that utilizes the Pug template engine. All my Pug files (layout.pug, head.pug, index.pug, etc.) are stored within a folder named pug. In my layout.pug file, I've established ...
Aditya Sutar's user avatar
0 votes
1 answer
54 views

how to fix csp bug with pug, sass, gulp

This is my project structure: enter image description here My gulpfile.js : const gulp = require("gulp"); const pug = require("gulp-pug"); const sass = require('gulp-sass')(require(...
Cloly's user avatar
  • 1
0 votes
0 answers
32 views

kss-node multiple markup on page?

is there a way so show multiple markup on a page in kss-node? Like a overview page? Normal: // Whatever // // Lets show Whatever // // Markup: atoms/2.01.whatever/_2.01.1.whatever.html // // ...
McFly2k's user avatar
0 votes
0 answers
54 views

How can I generate static files from a pugjs project correctly?

I work with a site that was builded using Pugjs as a template engine and I've been experiencing an error when I try to generate the static files using the command 'npm generate'. The projecto also has ...
JorgeL's user avatar
  • 1
1 vote
1 answer
831 views

Gulp: How to compile multiple .pug files into several index.html files inside folders

I'm learning to use gulp and I decided to use pug for writing all my html. The thing is that have this folder structure: src/pug ├── base │   ├── mixins.pug │   └── variables.pug ├── components │   ├──...
nardoyala's user avatar
0 votes
1 answer
133 views

MIXIN_WITHOUT_BODY - pug mixins

I am new to Pug! been trying to create a simple mixin for nav-item and also am using Gulp 4 for compiling with Gulp-pug package! It keeps on showing error 'PUG:MIXIN_WITHOUT_BODY' I googled it but ...
asnet's user avatar
  • 1
4 votes
0 answers
578 views

How to render html with pug at runtime in a project served by gulp?

I am new to web development, and am using gulp for my project, which serves index.html page at build time. I am using pug as a template for generating html. gulfile.js const bundler = () => { ...
8-Bit Borges's user avatar
  • 9,925
1 vote
1 answer
502 views

How can I get a value from index.html and use it to render a second template after parsing JSON file?

I'm trying to wrap my head around gulp and modern JavaScript bundling. The application is pretty simple: A html page is displayed to the user, where he must check a few radio buttons. User then ...
8-Bit Borges's user avatar
  • 9,925
0 votes
1 answer
1k views

Which options can i use with gulp-pug?

I have used gulp.js for a while, and while using the gulp-pug package I don't know which options can I use. Let's use sass as an example: // STYLES TASK `gulp.task('style', function() { return ...
Ahmad Salih's user avatar
0 votes
0 answers
138 views

Pug convert to HTML, how convert with line break?

Pug convert in this HTML code: <ul class="header__menu-list" id="header-menu"> <li class="header__menu-item"><a class="header__menu-link" href="catalog.html">Ювелирные изделия&...
hitFM's user avatar
  • 1
1 vote
0 answers
550 views

Use Pug (jade) as front end templates with express js

I have an express app that loads my pug (jade) templates to do server side rendering. There are a few points in my site where I want to render a view client side. For example, most of a page loads ...
Bill's user avatar
  • 5,628
1 vote
1 answer
275 views

pug/jade & gulp-merge-json line break

I'm using pug/jade with gulp data & gulp-merge-json. I can't find a way to insert line break in my Json. I have tried to insert in the json : \n \" \\ \/ \b \f \r \u None works. I managed to ...
Rom's user avatar
  • 105
2 votes
1 answer
147 views

Pug tag names with at-signs/asperands (@)

I use pug to write .json files (compiled with gulp, gulp-pug and gulp-xml2json). It works really well normally, but I can't figure out how to get it to handle the asperands (@) necessary for json-ld ...
Sean's user avatar
  • 7,610

15 30 50 per page
1
2 3 4 5
9