0.11.0 • Published 6 years ago

posthtml-browser v0.11.0

Weekly downloads
2
License
MIT
Repository
github
Last release
6 years ago

posthtml-browser

PostHTML for browser side. You can bundle it with webpack or other bundlers for browser.

Install

$ npm install posthtml-browser --save

Usage

import posthtml from 'posthtml'

const html = `
  <component>
    <title>Super Title</title>
    <text>Awesome Text</text>
  </component>
`

const result = posthtml()
  .use(require('posthtml-custom-elements')())
  .process(html, { sync: true })
  .html

console.log(result)
0.11.0

6 years ago

0.9.1

8 years ago

0.9.0

8 years ago