1.0.5 • Published 7 years ago

string-to-tag v1.0.5

Weekly downloads
3
License
ISC
Repository
github
Last release
7 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

7 years ago

1.0.4

7 years ago

1.0.3

7 years ago

1.0.2

7 years ago

1.0.1

7 years ago

1.0.0

7 years ago