1.3.2 • Published 10 months ago
@popeindustries/lit v1.3.2
@popeindustries/lit
A convenient, all-in-one package for server-rendering and hydrating lit templates and web components.
Features
- fast, streaming, Node.js server or
ServiceWorker
rendering - seamless and efficient client-hydration via
render()
- compatible with all synchronous directives
- proxies asynchronous directives for server streaming
- extensive web component features:
- server render and hydrate light or shadow DOM
- default support for
element.innerHTML
andelement.render()
- lazy client-hydration with
hydrate:idle
andhydrate:visible
attributes LitElement
base class support- render any base class with a custom
ElementRenderer
Usage
Install with npm/yarn/pnpm
:
$ npm install --save @popeindustries/lit
Author templates (see lit-html):
import { html, svg, render } from '@popeindustries/lit';
import { directive } from '@popeindustries/lit/directive.js';
import { until } from '@popeindustries/lit/directives/until.js';
Author LitElement web components (see lit-element):
import { css, LitElement } from '@popeindustries/lit';
import { LitElementRenderer } from '@popeindustries/lit/lit-element-renderer.js';
Author custom web components (see lit-html-server):
import { ElementRenderer } from '@popeindustries/lit/element-renderer.js';
import { lazyHydrationMixin } from '@popeindustries/lit/lazy-hydration-mixin.js';
Server render templates and web components (see lit-html-server):
import { renderToNodeStream, renderToString, renderToWebStream } from '@popeindustries/lit/html-server.js';
1.3.2
10 months ago
1.3.1
11 months ago
1.3.0
1 year ago
1.2.1
1 year ago
1.2.0
2 years ago
1.1.3
2 years ago
1.1.1
2 years ago
1.0.2
2 years ago
1.1.0
2 years ago
1.0.1
2 years ago
1.0.0
2 years ago
1.0.0-beta.3
2 years ago
1.0.5
2 years ago
1.0.4
2 years ago
1.1.2
2 years ago
1.0.3
2 years ago
1.0.0-beta.2
2 years ago
1.0.0-beta.1
2 years ago