0.7.0 • Published 2 years ago
htmltag v0.7.0
htmltag
An HTML-like template literal tag.
Install
npm install htmltag
API
html(callsite, ...values)
A template tag function that returns TemplateResult
objects.
import { html } from 'htmltag';
const planet = 'Earth';
const templateResult = html`<div>Hello ${planet}</div>`;
console.log(templateResult);
Class: TemplateResult
TemplateResult
objects contain both the static and dynamic parts of a template.
templateResult.template
A tree representing the result of parsing the template.
templateResult.values
An array of values supplied to the template literal instance.
0.7.0
2 years ago
0.6.6
2 years ago
0.6.5
5 years ago
0.6.4
5 years ago
0.6.3
5 years ago
0.6.2
5 years ago
0.6.1
5 years ago
0.6.0
5 years ago
0.5.0
6 years ago
0.4.4
7 years ago
0.4.3
8 years ago
0.4.2
8 years ago
0.4.1
8 years ago
0.4.0
8 years ago
0.3.4
8 years ago
0.3.3
8 years ago
0.3.2
8 years ago
0.3.1
8 years ago
0.3.0
8 years ago
0.2.0
8 years ago
0.1.15
8 years ago
0.1.14
8 years ago
0.1.13
8 years ago
0.1.12
8 years ago
0.1.11
8 years ago
0.1.10
8 years ago
0.1.9
8 years ago
0.1.8
8 years ago
0.1.7
8 years ago
0.1.6
8 years ago
0.1.5
8 years ago
0.1.4
8 years ago
0.1.3
8 years ago