How to make Jade stop HTML encoding element attributes, and produce a literal string value?

前端 未结 4 1770
太阳男子
太阳男子 2020-12-14 00:11

UPDATE Jade v0.24.0 fixes this with a != syntax for attributes. option(value!=\'<%= id %>\')


I\'m trying to bu

4条回答
  •  眼角桃花
    2020-12-14 00:34

    As of this writing I don't believe there's a way to it. See this issue: https://github.com/visionmedia/jade/issues/198

    I ended up dropping into raw HTML to solve it, using the | prefix.

提交回复
热议问题