nativescript-dev-jade

Jade support for NativeScript projects. =======================================

Usage no npm install needed!

<script type="module">
  import nativescriptDevJade from 'https://cdn.skypack.dev/nativescript-dev-jade';
</script>

README

Jade support for NativeScript projects.

How to use

$ tns install jade

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

Example:

Page(xmlns="http://schemas.nativescript.org/tns.xsd")
  StackLayout
    Label(text="This is Label")
    Button(text="This is Button")

Result:

<Page xmlns="http://schemas.nativescript.org/tns.xsd">
  <StackLayout>
    <Label text="This is Label"></Label>
    <Button text="This is Button"></Button>
  </StackLayout>
</Page>

More info at http://jade-lang.com/.