nativescript-dev-pug
by s1300045 | v0.6.0
Pug support for NativeScript with Angular.
npm i --save nativescript-dev-pug
  • Version: 0.6.0
  • GitHub:
  • Downloads:
    • Last Day:   1
    • Last Week:  3
    • Last Month: 57

Pug support for NativeScript with Angular projects.

How to use

$ tns install pug

The above command installs this module and installs the necessary hooks. Pug processing of all .pug files inside app folder happens when the project is prepared for build.

Example:

StackLayout
Label(text="This is Label")
Button(text="This is Button")

Result:

<StackLayout>
<Label text="This is Label"></Label>
<Button text="This is Button"></Button>
</StackLayout>

More info at https://pugjs.org.