1.0.5 • Published 5 years ago

string-to-tag v1.0.5

Weekly downloads
3
License
ISC
Repository
github
Last release
5 years ago

string-to-tag

Usage:

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
1.0.5

5 years ago

1.0.4

5 years ago

1.0.3

5 years ago

1.0.2

5 years ago

1.0.1

5 years ago

1.0.0

5 years ago