Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/fis-stuff/fis-parser-ejs-2.x
ejs template parser plugin for fis3
https://github.com/fis-stuff/fis-parser-ejs-2.x
ejs fis3 parser
Last synced: 6 days ago
JSON representation
ejs template parser plugin for fis3
- Host: GitHub
- URL: https://github.com/fis-stuff/fis-parser-ejs-2.x
- Owner: fis-stuff
- License: mit
- Created: 2017-09-04T06:19:11.000Z (about 7 years ago)
- Default Branch: master
- Last Pushed: 2019-06-26T06:13:27.000Z (over 5 years ago)
- Last Synced: 2024-04-28T01:04:37.670Z (7 months ago)
- Topics: ejs, fis3, parser
- Language: JavaScript
- Size: 11.7 KB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# fis-parser-ejs-2.x
ejs template parser plugin for fis3
## 使用方法
```js
fis.match('*.ejs', {
parser: fis.plugin('ejs-2.x', {
/**
* 模块化加载框架 [requirejs|modjs|seajs]
* 为null时,每个js文件用script标签引入
* e.g.
*
*
* 为requirejs|modjs|seajs时
* e.g.
* require(["/widget/a/a.js", "/widget/b/b.js"]);
* 或者
* seajs.use(["/widget/a/a.js", "/widget/b/b.js"]);
*/
loader: null,
/**
* 是否进行同步加载,默认为false,loader设置不为null时生效
* 因为allInOne打包时会被忽略异步依赖,所以使用allInOne时需要开启同步依赖
*/
loadSync: false,
// 是否编译内容,默认为true,为false时不编译ejs语法,只引用资源依赖
parse: true,
// 全局的mock文件,相对于root,默认为null
commonMock: null,
// ejs的root配置,默认为项目根目录
root: [fis.project.getProjectPath()]
}),
// 将扩展名发布为html
rExt: '.html',
// 以html文件类型作为fis3-postpackager-loader语言分析
loaderLang: 'html'
});
```