mardi 27 décembre 2016

Html Pug: Is this Right or wrong?

i am trying to learn "pug' i want to convert this HTML to pug

<div class="buttons">
    <a class="button" href="#">Go to homepage</a>
</div>

my pug version

.buttons 
a.button(class={active: currentUrl === '#'} href='#') Go to homepage

is correct ?




Aucun commentaire:

Enregistrer un commentaire