wxml-transpiler
Version:
template compiler for wxml
25 lines (17 loc) • 441 B
Markdown
# wxml-transpiler
This package can be used to compile wxml templates.([view source code here](https://github.com/IOriens/wxml-transpiler)). It works just like wcc.exe, wcc.
## Usage
```sh
npm i wxml-transpiler
```
``` js
const compiler = require('wxml-transpiler')
const fileList = [
'./pages/index/index.wxml',
'./common/head.wxml',
'./common/foot.wxml'
]
const res = compiler.wxmlCompile(fileList)
```
## Liscense
MIT