D
D
Denis Bukreev2016-12-29 10:51:53
HTML
Denis Bukreev, 2016-12-29 10:51:53

How to make jade output everything in its original format?

So it goes.
I am compiling the layout in Gulp with the Jade html preprocessor.
And this is the problem: it displays inline tags in one line:
c5664daa15be45769324e8a16708dec1.png
although I prescribe them with line breaks in the .jade file.
I use the option pretty: true, without it the html output is generally compressed.
In the future, the layout will be put on Bitrix, so it’s not worth giving it to the backend, I would like it to be structured (saving transfers and their number).
How to achieve beautiful html?

Answer the question

In order to leave comments, you need to log in

3 answer(s)
K
Konstantin Davydov, 2016-12-29
@space_pancake

Install yourself gulp-html-prettify and after compiling from jade to html, run through it again.

U
Ucorp, 2016-12-29
@Ucorp

You can instead pretty: truespecify pretty: ' '
In quotes, specify the desired number of spaces / indents.
gulp-html-prettify does the same.

J
Johniq, 2017-06-02
@Johniq

Is there a jQuery carousel plugin with the described structure?
https://www.google.com.ua/search?q=jquery+coverflo...

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question