M
M
myskypesla2017-07-07 15:15:35
HTML
myskypesla, 2017-07-07 15:15:35

What is the correct way to write in Pug?

1st option: a(href="/about").footer__btn About
2nd option: a(href="/about", class="footer__btn") About

Answer the question

In order to leave comments, you need to log in

2 answer(s)
K
Konstantin Kitmanov, 2017-07-07
@k12th

a.footer__btn(href="/about"). (class="")only needed if the class is dynamically constructed, which happens infrequently.
But in general, this is all a matter of taste, as long as it is the same within the framework of one project.

O
Oleg, 2017-07-07
@werty1001

both

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question