PaulGuo / Juicer

A Lightweight JavaScript Template Engine.
http://juicer.name
MIT License
915 stars 262 forks source link

官方文档中的一个示例错误 #124

Open LeeScofield opened 7 years ago

LeeScofield commented 7 years ago

var json = { value: '&lt ;strong&gt ;juicer&lt ;/strong&gt ;' };

var escape_tpl='${value}'; var unescape_tpl='$${value}';

juicer(escape_tpl, json); //输出 '<strong>juicer</strong>' juicer(unescape_tpl, json); //输出 'juicer'

这里的json变量应为var json = { value: '<strong>juicer</strong>' }; 这里应该是显示的问题。