jade & html

jade --> html

https://github.com/visionmedia/jade#jade1

jade(1)


Usage: jade [options] [dir|file ...]

Options:

  -h, --help         output usage information
  -V, --version      output the version number
  -o, --obj <str>    javascript options object
  -O, --out <dir>    output the compiled html to <dir>
  -p, --path <path>  filename used to resolve includes
  -P, --pretty       compile pretty html output
  -c, --client       compile function for client-side runtime.js
  -D, --no-debug     compile without debugging (smaller functions)
  -w, --watch        watch files for changes and automatically re-render

Examples:

  # translate jade the templates dir
  $ jade templates

  # create {foo,bar}.html
  $ jade {foo,bar}.jade

  # jade over stdio
  $ jade < my.jade > my.html

  # jade over stdio
  $ echo "h1 Jade!" | jade

  # foo, bar dirs rendering to /tmp
  $ jade foo bar --out /tmp 

 

html --> jade

https://github.com/donpark/html2jade

posted @ 2013-04-03 15:35  邓维  阅读(1099)  评论(0编辑  收藏  举报