Answer the question
In order to leave comments, you need to log in
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
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.
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question