2.0.0 • Published 4 years ago

fake-lit v2.0.0

Weekly downloads
2
License
ISC
Repository
-
Last release
4 years ago

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.