F
F
fantazerno2016-06-26 14:18:21
JavaScript
fantazerno, 2016-06-26 14:18:21

How to insert layout from an object in Jade?

there is an object that is parsed and inserted into Jade

soc =[
    {
      'img':'image.png',
      'title':'Оптимизация молодых сайтов',
      'text':'<p> Проверка текста</p>'
    }
  ];

into such a template (mixin)
- each item in soc
  .text #{item.text}

But at the same time, it is the text that is inserted
"<p> Проверка текста</p>"
Tell me how to insert the layout.

Answer the question

In order to leave comments, you need to log in

1 answer(s)
F
fantazerno, 2016-06-26
@fantazerno

Found the answer here
stackoverflow.com/questions/7402750/passing-html-e...

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question