html2jsify

0.0.2 • Public • Published

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

Readme

Keywords

Package Sidebar

Install

npm i html2jsify

Weekly Downloads

2

Version

0.0.2

License

BSD-2-Clause

Last publish

Collaborators

  • voltrevo