fake-lit
v2.0.0
Published
Faking html tags for template literals for the win… and syntax highlighting
Downloads
13
Maintainers
Readme
fake-lit
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.