0.7.0 • Published 9 months ago

htmltag v0.7.0

Weekly downloads
1
License
MIT
Repository
github
Last release
9 months ago

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

9 months ago

0.6.6

9 months ago

0.6.5

4 years ago

0.6.4

4 years ago

0.6.3

4 years ago

0.6.2

4 years ago

0.6.1

4 years ago

0.6.0

4 years ago

0.5.0

4 years ago

0.4.4

6 years ago

0.4.3

6 years ago

0.4.2

6 years ago

0.4.1

6 years ago

0.4.0

6 years ago

0.3.4

6 years ago

0.3.3

6 years ago

0.3.2

6 years ago

0.3.1

6 years ago

0.3.0

6 years ago

0.2.0

6 years ago

0.1.15

6 years ago

0.1.14

6 years ago

0.1.13

6 years ago

0.1.12

7 years ago

0.1.11

7 years ago

0.1.10

7 years ago

0.1.9

7 years ago

0.1.8

7 years ago

0.1.7

7 years ago

0.1.6

7 years ago

0.1.5

7 years ago

0.1.4

7 years ago

0.1.3

7 years ago