0.0.9 • Published 9 years ago
yog-jade v0.0.9
custom compiler for yog
此方案使得jade支持yog方案提供的资源管理系统,
使用:
在 yog project 中执行:
npm install --save yog-jade
修改yog/conf/plugins/views.js,加入
engine: {
jade: require('yog-jade')
}之后就如fis其他模板引擎方案一样,
标签link,style移动到head内,
script自动移动到body末尾,以及自动资源管理。
notice :
如果不希望某些script标签参与资源管理,
添加属性名no-move,
script.
console.log( 'this will move to the end of body');
script(no-move).
console.log( 'this will not move to the end of body');TODOS: support yog's bigpipe