In a jade template (using express over node.js), I see a template using the following syntax:
script(type='text/template', id='data-services') !{data}
I don't understand the !{ }
construct; apparently it interpolates a javascript object defined elsewhere as:
var data={ name:"Doe", age:"21" };
Jade docs & tuts show the use of #{ }
for interpolation, but I don't see !{ }
. Even #{ }
is not documented, so I think it's not jade-specific. Where does this syntax come from and where is it documented?
See Question&Answers more detail:
os 与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…