J
J
JIakki2015-07-27 15:23:14
Pug
JIakki, 2015-07-27 15:23:14

How not to repeat similar code in jade?

There are two blocks: entry and registration
. Their fields are identical, only the name and action are different.
Is it possible not to repeat something?
a92a506746424fea94d015cca24596f1.png

Answer the question

In order to leave comments, you need to log in

1 answer(s)
K
Konstantin Kitmanov, 2015-07-27
@JIakki

Use mixins . If you had guessed to insert the code instead of a screenshot, I would have made an example for you :)

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question