0.1.27 • Published 9 years ago
grunt-ejs2seajs v0.1.27
Advantage:
优点:
- Easy to debug
- 便于调试
- Nodejs usable
- 可用于nodejs
- No XSS
- 避免XSS
Debugging in chrome dev tools:
支持在Chrome开发者工具中断点调试:
_For simple and thin, only support tags <%= %> , <%- %> or <% %>_
为了足够简单,目前只支持 <%= %>, <%- %> 和 <% %> 标签
Installation
安装
In your project's gruntfile directory, run:
在你的Gruntfile.js所在目录下,执行:
npm install grunt-ejs2seajs --save-dev
Then add this line to your project's gruntfile:
添加下面这句到你的Gruntfile.js中:
grunt.loadNpmTasks('grunt-ejs2seajs');
Usage
ejs2seajs: {
template: {
src: [
'src/js/**/tpls' // target to the "tpls" directories
],
expand: true
}
}
example directories:
目录结构示例:
...
|_ tpls/
| |_ a.ejs
| |_ b.ejs
|_ tpls.js <- require this file
then start grunt, you will see the log like this:
启动 grun 后看到下面的输出即正常:
$ grunt ↵
> Running "ejs2seajs:template" (ejs2seajs) task
> File "src/js/modules/my-module1/tpls.js" created.
> Running "watch" task
> Waiting...
0.1.27
9 years ago
0.1.26
9 years ago
0.1.25
9 years ago
0.1.24
9 years ago
0.1.23
9 years ago
0.1.22
9 years ago
0.1.21
9 years ago
0.1.20
9 years ago
0.1.19
9 years ago
0.1.17
9 years ago
0.1.16
9 years ago
0.1.15
9 years ago
0.1.14
9 years ago
0.1.13
9 years ago
0.1.12
9 years ago
0.1.11
9 years ago
0.1.10
9 years ago
0.1.9
9 years ago
0.1.8
9 years ago
0.1.7
9 years ago
0.1.6
9 years ago
0.1.5
9 years ago
0.1.4
9 years ago
0.1.3
9 years ago
0.1.2
9 years ago
0.1.1
9 years ago
0.1.0
9 years ago