Answer the question
In order to leave comments, you need to log in
`
How to solve the problem with special replacement of characters in pug when running through a loop in PUG?
The data is like this:
var items = [
{bg:'#5FD0DF',img:'/img/wifi.svg',text:`цифровые <br>сервисы`},
{bg:'#ff7d4e',img:'/img/loop.svg',text:'<b>Исследуем</b><br>общественно-политические<br>процессы'},
]
mixin item(item,val,text)
.item(style=`background-color:${item.bg}`)
p.count=val+1
.img(src=`item.img`)
p.info=text
each item,val in items
+item(item,val,item.text)
<p class="info"><b>Исследуем</b><br>общественно-политические<br>процессы</p>
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question