Questions tagged [Pug] (475)

1
answer

How to add gulp 4?

Good afternoon. There app.js the following: const express = require("express"); const app = express(); var pageInfo = { home: { link: "/", title: "Main page", description: "Some text" } }; app.set("view engine", "pug"); app.use("/public/", express.static(__dirname + "/static/")); app.use("/", function(request, respo...
Gust_Feest asked April 19th 20 at 12:31
0
answer

Is it possible to write in pug level structures, to work?

Is it possible to pug to write level structures, to form something like that? <f:link.page class="text-center">something</f:link.page>
Regan6 asked April 18th 20 at 13:26
1
answer

How to make friends and Webpack (vue+pug+stylus)?

The problem is this: I want to make a simple Tile editor for my future games. Was looking for a technology stack that would have the least amount of code could give a beautiful ui in the browser window. vue with pug and stylus to make friends turned out almost immediately, however, reading another guide, it said you need We...
Donna10 asked April 18th 20 at 12:44
0
answer

Pug Interpolation inside attributes(Interpolation inside attributes)?

Did some digging, and I do not found how to do it. Because I love pug, but we need to write php code and chose the most simple solution(phug is that the idea is a complete solution for pug + php) - just insert the php code using | But to insert into the attributes could not always escaped < > Inter-be it so: p some...
kelly83 asked April 18th 20 at 12:18
2
answers

How to fill in the blocks with the same class with different pictures?

Well, the problem in the question. How to fill in the blocks with the same class with different pictures? namely, what would each block was a different background?? snippet
amelie_Mills asked April 16th 20 at 10:52
1
answer

Where is the error in gulp?

[21:21:38] Plumber found unhandled error: Error in plugin "gulp-pug" Message: ENOENT: no such file or directory, open 'D:\Kwork\Проект Construction\gotoy website\dev\pug\pages\index\feature\feature.pug' at D:\Kwork\Проект Construction\gotoy website\dev\pug\index.pug line 7 Details: errno: -4058 syscall: open code: ENO...
Alvis_McGlynn asked April 16th 20 at 10:42
1
answer

How to compile PUG on the fly in VScode?

Want to be able to collect html files from Pug, as well as it does with the Live SCSS Sass Compiler. Found plugin Live Pug Compiler, but it drags all at once, even with the folder (in case Sass question is solved by adding to the file underscores). Webpack I don't know how. Yes, it should, but the question now is not about ...
maymie_Reynolds60 asked April 9th 20 at 10:40
2
answers

Is it possible to Pug substitute parent selector?

In Sass you can use the & symbol to refer to the parent selector, is there a similar function in a Pug? For example .my_class &_inner &_more and that output was: <div class="my_class"> <div class="my_class_inner"> <div class="my_class_inner_more"></div> </div> </div>
wyman23 asked April 9th 20 at 10:01
2
answers

Can anyone share the right sentiments and suitable collector Gulp?

Hello) Learn another point of development, but as usual hard at it. Of course I want everything ready, but trying to understand something, I want to at least look at a finished product that would draw Parallels. So, who can adequately share collected by the collector Gulp, as they say where I sat down and went. What would t...
Ali asked April 8th 20 at 18:33
1
answer

How to do a few cycles in the mixin PUG/ JADE?

Friends, tell me how can I make some loops in the mixin, despite the fact that when you add a mixin to the page we list the desired name in the ad: here is an example mixin A (...tags ...styles) .content .style each style in styles a(href='#').style__item= style .tags each tag in tags a(href='#').tag= tag The problem ...
Amani_Schuppe asked April 8th 20 at 17:46