fake-lit

2.0.0 • Public • Published

fake-lit The badge

Fakes a html tag for the template literals - like lit-html does - so any editor plugins like mjbvz/vscode-lit-html highlight the html inside.


Usage

// options! like this:
const html = require('fake-lit')

const highlightThis = content => html`
    <div class='parent'>
        <div class='component'>${content}</div>
    </div>
`

highglightThis will now have highlighted syntax.

The function itself does nothing, merely joins together all the parts.


ISC © 2020 Adam Kiss or whatever.

Package Sidebar

Install

npm i fake-lit

Weekly Downloads

2

Version

2.0.0

License

ISC

Unpacked Size

1.33 kB

Total Files

3

Last publish

Collaborators

  • adamkiss