F
F
fantazerno2015-12-24 19:48:12
HTML
fantazerno, 2015-12-24 19:48:12

Is there such a plugin for Gulp or NPM?

Tell me if there is such a plugin for Gulp or NPM that implements the following functionality

<!-- do-it х3 -->
<div class="block">
  <p>Просто текст</p>
</div>
<!-- do-it -->

<div class="block">
  <p>Просто текст</p>
</div>

<div class="block">
  <p>Просто текст</p>
</div>

<div class="block">
  <p>Просто текст</p>
</div>

Simply put, I repeated part of the layout the required number of times

Answer the question

In order to leave comments, you need to log in

2 answer(s)
V
Vladimir Io, 2015-12-24
@vawsan

In jade, you can reuse blocks, in gulp, Chot did not meet.

P
pufflik, 2015-01-03
@pufflik

Things like this are easily implemented via handlebarsjs.com/. There are cycles, but unlike JADE, Handlebars has the same syntax as regular HTML. And there is a compilation plugin for gulp, of course.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question