-
var obj = [
{title: 'first title', text: 'first text'},
{title: 'second <span class="accent">title</span> ', text: 'second text'},
{title: 'third title', text: 'third text'}
]
mixin features(title, text)
.block
.block__item
img.block__img(src="/img/block/1.jpg")
.block__title!= title
p.block__capture= text
each val, index in obj
+features(val.title, val.text)