0.1.0 • Published 8 years ago

jade2js v0.1.0

Weekly downloads
1
License
ISC
Repository
github
Last release
8 years ago

Compile jade into js functions served as one file

  $ jade2js path/to/templates path/to/result.js [--no-debug]
  

in html:

  <script src=/templates.js/>
  <script>
    render.*YourTemplateFilename*(variables)
  </script>

All your script tags would be cut from jade template and moved into result.js file as IIFE So you can use it to declare template specific code as:

  #myAwesomeSelector Hello World
  script
    - alert($('#myAwesomeSelector').val())

Jade generate a lot of debug information to help you debug your code. And it looks a bit messy, so for production use --no-debug or -D

0.1.0

8 years ago

0.0.9

8 years ago

0.0.8

8 years ago

0.0.7

8 years ago

0.0.6

8 years ago

0.0.5

8 years ago

0.0.4

8 years ago

0.0.3

8 years ago

0.0.2

8 years ago