0.1.0 • Published 10 years ago

jade2js v0.1.0

Weekly downloads
1
License
ISC
Repository
github
Last release
10 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

10 years ago

0.0.9

10 years ago

0.0.8

10 years ago

0.0.7

10 years ago

0.0.6

10 years ago

0.0.5

10 years ago

0.0.4

10 years ago

0.0.3

10 years ago

0.0.2

10 years ago