0.0.3 • Published 9 years ago
rapid-handlers v0.0.3
Rapid Handlers
Rapid 处理器
什么是处理器?
处理器会对文件进行渲染或者编译,比如, 模板、组件、css预处理等等
处理器使用
添加handler.js配置;
- 渲染器
{
//模板处理器
"template" : {
//后缀名为.xt的文件会加载xteamplate和component编译引擎进行渲染
"xt":"xtemplate,comonponet",
//后缀名为.xt的文件会加载art和component编译引擎进行渲染
"art":"art,component"
}
}
- 编译器