Node.js 的模板引擎 Jade

fmms 13年前
     <p>Jade很大程序上受到了Haml的启发,用JavaScript实现了一个NodeJS的高性能模板引擎。</p>    <ul>     <li>客户端支持</li>     <li>高可读性</li>     <li>灵活缩进</li>     <li>html 5模式</li>     <li>可选内存缓冲</li>     <li>默认代码转义以提高安全性</li>     <li>以过滤器产生解析树</li>     <li>模板继承</li>     <li>开箱即用的Express JS支持</li>     <li>命令行运行编译jade模板</li>     <li>通过each透明迭代对象,数组,甚至非枚举类</li>     <li>块注释</li>     <li>块扩展</li>     <li>编译和运行时上下文错误报告</li>     <li>属性改写</li>     <li>静态包含</li>     <li>mixins</li>     <li>块注释</li>     <li>无标签前缀</li>     <li>AST过滤器</li>     <li>filters      <ul>       <li>:stylus must have <a href="/misc/goto?guid=4959500212605132086">stylus</a> installed</li>       <li>:sass must have <a href="/misc/goto?guid=4959500212698308549">sass.js</a> installed</li>       <li>:less must have <a href="/misc/goto?guid=4959500212778469165">less.js</a> installed</li>       <li>:markdown must have <a href="/misc/goto?guid=4959500212871301945">markdown-js</a> installed or <a href="/misc/goto?guid=4959500212959582395">node-discount</a> </li>       <li>:cdata</li>       <li>:coffeescript must have <a href="/misc/goto?guid=4958184195629946193">coffee-script</a> installed</li>      </ul> </li>     <li><a href="/misc/goto?guid=4959500213209325060">Emacs Mode</a></li>     <li><a href="/misc/goto?guid=4959500213348341638">Vim Syntax</a></li>     <li><a href="/misc/goto?guid=4959500213442680917">TextMate Bundle</a></li>     <li><a href="/misc/goto?guid=4959500213521663134">Screencasts</a></li>     <li><a href="/misc/goto?guid=4959500213614203447">html2jade</a> converter</li>    </ul>    <p><strong>项目主页:</strong><a href="http://www.open-open.com/lib/view/home/1325510885531" target="_blank">http://www.open-open.com/lib/view/home/1325510885531</a></p>