@stevefan1999/babel-plugin-transform-pug-html

0.1.2 • Public • Published

babel-plugin-transform-pug-html

Transforms "pug" tagged template literals to html strings

Usage

Just add to your .babelrc:

{
  ...
  "plugins": ["@stevefan1999/babel-plugin-transform-pug-html"]
}

Then anywhere in your code you can write:

pug `
div
  p This text belongs to the paragraph tag.
  br
  .
    This text belongs to the div tag.
`

// Which produces:

`<div>
  <p>This text belongs to the paragraph tag.</p>
  <br/>
  This text belongs to the div tag.
</div>`

Package Sidebar

Install

npm i @stevefan1999/babel-plugin-transform-pug-html

Weekly Downloads

2

Version

0.1.2

License

MIT

Unpacked Size

3.2 kB

Total Files

6

Last publish

Collaborators

  • stevefan1999