npm i --save nativescript-dev-pug
- 版本:0.6.0
- GitHub:
- NPM: https://npmjs.net.cn/package/nativescript-dev-pug
- 下载量
- 昨日: 0
- 上周: 0
- 上个月: 0
为 NativeScript 和 Angular 项目提供 Pug 支持。
使用方法
$ tns install pug
上述命令安装此模块并安装必要的钩子。当项目准备构建时,对 .pug
文件的 Pug 处理会在 app
文件夹内发生。
示例
StackLayout
Label(text="This is Label")
Button(text="This is Button")
结果
<StackLayout>
<Label text="This is Label"></Label>
<Button text="This is Button"></Button>
</StackLayout>
更多信息请访问 https://pug.node.org.cn。