I
I
Ivan Grishov2022-02-12 12:55:44
PHP
Ivan Grishov, 2022-02-12 12:55:44

Do I need to learn PUG and how effective is it?

Good afternoon. The situation is this - I'm switching from gulp to webpack,
in gulp I used the gulp-include plugin to use templates. For example, I included a header on all pages, and if I needed to change something in it later, I changed it only in one template file - this is super convenient.

Now I found a webpack assembly in which it is proposed to use pug to work with includes and templates.

And I have a dilemma about this. Is pug worth learning and how cool and necessary is it? ( its dependence on spaces and tabs is very annoying, plus a different syntax in general ) Or find a webpack plugin similar to gulp-inlude in gulp? Thanks for the answer.

Answer the question

In order to leave comments, you need to log in

3 answer(s)
A
Andrey, 2016-02-16
@wikiparse

array_map(
function(i) { echo $i->ResultPrice; },
$array->FindDetailAdv4Result->Details->SoapDetailItem
)

K
krypt3r, 2016-02-16
@krypt3r

Of course, loop through the SoapDetailItem. Isn't it obvious? And why the hell are you creating another topic with the same question that you already answered? Mods, hey!

D
DevMan, 2022-02-12
@IvanGrishov

there is nothing NECESSARY .
there is only something that SOLVES the tasks.
does he help you? needed!
I can easily do without it.
Now few people get by with bare layout: either spa or server-side.
and there and there there are template engines. Of course, it is possible to scribble a pag there, but, IMHO, it did not rest.
although it can give a slight profit for prototypes. although there are already a lot of tools for them.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question