2023-11-01 16:03:07 +08:00
|
|
|
|
|
|
|
![downloads](https://img.shields.io/npm/dt/@gm5/views.svg)
|
|
|
|
![version](https://img.shields.io/npm/v/@gm5/views.svg)
|
2020-09-27 18:37:49 +08:00
|
|
|
|
|
|
|
# @gm5/views
|
|
|
|
|
|
|
|
> @gm5框架的模板引擎拓展包.
|
|
|
|
|
|
|
|
## 安装
|
2023-11-01 16:03:07 +08:00
|
|
|
> 一般不需要单独安装, 该模块包含在`@gm5/core`的依赖里。
|
2020-09-27 18:37:49 +08:00
|
|
|
|
|
|
|
```bash
|
2023-11-01 16:03:07 +08:00
|
|
|
npm i @gm5/views
|
2020-09-27 18:37:49 +08:00
|
|
|
```
|
|
|
|
|
|
|
|
|
|
|
|
## 使用
|
|
|
|
|
|
|
|
```js
|
2023-11-01 16:03:07 +08:00
|
|
|
import { ViewsModule } from '@gm5/views'
|
2020-09-27 18:37:49 +08:00
|
|
|
|
2023-11-01 16:03:07 +08:00
|
|
|
app.install(ViewsModule)
|
2020-09-27 18:37:49 +08:00
|
|
|
|
|
|
|
```
|
|
|
|
|
|
|
|
|