0.11.0 • Published 7 years ago

posthtml-browser v0.11.0

Weekly downloads
2
License
MIT
Repository
github
Last release
7 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

7 years ago

0.9.1

9 years ago

0.9.0

9 years ago