0.0.8 • Published 7 years ago

hmap v0.0.8

Weekly downloads
1
License
GPL-3.0
Repository
github
Last release
7 years ago

hmap

hmap is a fast, flexible interpreter for HTML which use jade/pug syntax to describe HTML

Install

npm install --save hmap
or
npm install hmap

Basic Usage

hmap file
test.hmap

html
  head
    title #{personal-title}

javascript file

var hmap = require('hmap');
var html = '<html><head><title>hmap</title></head></html>'
var result = hmap(__dirname + "/test.hmap", html);
console.log(JSON.stringify(result));

result

{"personal-title":"hmap"}

Features

  • Beautiful Syntax: hmap file use a beautiful syntax like jade/pug. if you have been use this template engine,you can fast to use it!
  • Full Support: the low-level interpreter is Cheerio.A powerful npm package or core.

License

this project is basic on MIT License. Use it free for you like.

0.0.8

7 years ago

0.0.7

7 years ago

0.0.6

7 years ago

0.0.5

7 years ago

0.0.4

7 years ago

0.0.3

7 years ago

0.0.2

7 years ago

0.0.1

7 years ago