Usage: ``` import { css, html } from "lit-element" import { strToTag } from "string-to-tag"
npm install string-to-tagUsage:
``
import { css, html } from "lit-element"
import { strToTag } from "string-to-tag"
const simple = "My string...";
strToTag(simple, html) // TemplateResult
// Retain context
const binded = "Test ${this.myProp}";
strToTag.bind(this)(binded, html) // TemplateResult
// CSS
const _css = ":host { background: red }";
strToTag(_css, css) // CSSResult
``