M
M
ma4t2019-03-01 13:45:41
css
ma4t, 2019-03-01 13:45:41

Is it possible to use js children.length in pug?

Hi, I need to compare the number of children in one block and the number of children in another block.
Pug accepts the same JS code, how to do it?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
�
ⓒⓢⓢ, 2019-03-01
@ma4t

It depends on your implementation how you add "children", for example, you can do this
https://codepen.io/anon/pen/QoyQVY

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question