I would like to know how to do not need to repeat codes, I do not know if using for
, for example I have this code below that corresponds to a card with data of an educator I will have several of these where I will only change the data but the I would like to learn some jade / pug feature where I leave the code cleaner without having to repeat it.
//- CARD 4
div.card-educator.item
ul.educator
li.educator-photo
figure
img(src="img/eunice.png", alt="Eunice Magalhães Fonseca")
figcaption Eunice Magalhães Fonseca
li.hr
hr
li.icons.icon-boy-girl
svg
use(xlink:href='svg/myicons.svg#boy-girl')
span 252 alunos
li.icons.icon-gamepad
svg
use(xlink:href='svg/myicons.svg#gamepad')
span 252 alunos
li.icons.icon-question-list
svg
use(xlink:href='svg/myicons.svg#question-list')
span 252 alunos
li.button
button(type='button') Selecionar