jade -Template Engine

div(escaped="<code>")
div(unescaped!="<code>")

 

<div escaped="&lt;code&gt;"></div>
<div unescaped="<code>"></div>

 

div#foo(data-bar="foo")&attributes({'data-foo': 'bar'})

<div id="foo" data-bar="foo" data-foo="bar"></div>

posted @ 2014-10-29 11:17  ElvinLong  阅读(207)  评论(0编辑  收藏  举报