npm.io
0.0.2 • Published 11 years ago

html2jsify

Licence
BSD-2-Clause
Version
0.0.2
Deps
1
Vulns
0
Weekly
0

Turn crummy HTML into beautiful Javascript

npm install html2jsify

How?

some.html

<div>
  <h1>dude!</h1>
</div>

app.js

'use strict'

var html = require('./some.html')

// html is a function which returns a dom node

console.log(html())

Then

browserify -t html2jsify app.js

Keywords