mixin test(param)
div(class="b-content-img-#{param}")
block
+test("test")
h1 Test
<div class="b-content-img-test">
<h1>Test</h1>
</div>
mixin post(item)
.block-post
h1= item.title
.img
img(src="#{item.img}")
p= item.short
- each item in [{title: 'Title 1', short: 'Short text...', img: 'https://habrastorage.org/files/4da/a0f/944/4daa0f944a4a413f92550632f74d2729.jpg'}]
+post(item)