0.0.9 • Published 7 years ago

yog-jade v0.0.9

Weekly downloads
2
License
ISC
Repository
-
Last release
7 years ago

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

0.0.9

7 years ago

0.0.8

8 years ago

0.0.7

9 years ago

0.0.6

9 years ago

0.0.5

9 years ago

0.0.4

9 years ago

0.0.3

9 years ago

0.0.2

9 years ago

0.0.1

9 years ago