jade-generator
Jade code generator
Last updated 5 years ago by yang.su .
MIT · Repository · Bugs · Original npm · Tarball · package.json
$ cnpm install jade-generator 
SYNC missed versions from official npm registry.

jade-generator

Generated jade code using a jade AST

Build Status Dependency Status NPM version

Installation

npm install jade-generator

Usage

var lex = require('jade-lexer');
var parse = require('jade-parser');
var generator = require('jade-generator');

var ast = parse(lex('.my-class food'));

assert.deepEqual(parse(lex(generator(ast))), ast);

TODOs

  • [ ] correctly generate selfClosing properties on tags
  • [ ] support inline tag syntaxt
  • [ ] correctly generate line numbers

License

MIT

Current Tags

  • 0.0.2                                ...           latest (5 years ago)

2 Versions

  • 0.0.2                                ...           5 years ago
  • 0.0.1                                ...           5 years ago
Maintainers (1)
Downloads
Today 0
This Week 0
This Month 0
Last Day 0
Last Week 0
Last Month 0
Dependencies (2)
Dev Dependencies (7)
Dependents (0)
None

Copyright 2014 - 2016 © taobao.org |