html-preprocessor

How do I insert html tags in JS with pug?

感情迁移 提交于 2020-12-26 09:41:11
问题 When I need to use a JSON-like object in JS with different data in each block and iterating through that object I make a HTML code via pug. Let me describe it in code var footerMenu = { left: { title: "sometitle", list: [ { title: "First thing to do", text: "wake up and brush some teeth" }, { title: "Second thing to do", text: "start coding" }, (...) Problem comes when text withing property footerMenu.left[0].text has to be styled with some tags. I need something like this ...... text: "wake