Answer the question
In order to leave comments, you need to log in
Kind of html code after pug?
Friends, probably a stupid question, but I'll ask it anyway.
I'm learning pug and I don't quite like the look of the html code that I get. For example, here is the pug code
header
.header__up
.container-fluid
.row
.col-md-1
a(href="#")
img(src='img/logo.png' alt='logo')
.col-md-offset-6.col-md-5
.header__nav
.header__nav-search
input(type='text' placeholder='search website')
a.header__nav-search-btn(href="#")
img(src="img/fa_search.png" alt="search-logo")
a.header__nav-buy(href="#") buy $21
a.bars(href="#")
img(src="img/fa_bars.png" alt="bars")
<header>
<div class="header__up">
<div class="container-fluid">
<div class="row">
<div class="col-md-1"><a href="#"><img src="img/logo.png" alt="logo"></a></div>
<div class="col-md-offset-6 col-md-5">
<div class="header__nav">
<div class="header__nav-search">
<input type="text" placeholder="search website"><a class="header__nav-search-btn" href="#"><img src="img/fa_search.png" alt="search-logo"></a>
</div><a class="header__nav-buy" href="#">buy $21</a><a class="bars" href="#"><img src="img/fa_bars.png" alt="bars"></a>
</div>
</div>
</div>
</div>
</div>
</header>
Answer the question
In order to leave comments, you need to log in
Well, I'll put in my 5 kopecks)))
gulp-html-prettify is what you need, since it bothers you.
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question