1.3.5 • Published 1 year ago
@popeindustries/lit v1.3.5
@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
ServiceWorkerrendering - 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.innerHTMLandelement.render() - lazy client-hydration with
hydrate:idleandhydrate:visibleattributes LitElementbase class support- render any base class with a custom
ElementRenderer
Usage
Install with npm/yarn/pnpm:
$ npm install --save @popeindustries/litAuthor 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.5
1 year ago
1.3.4
1 year ago
1.3.3
1 year ago
1.3.2
2 years ago
1.3.1
2 years ago
1.3.0
3 years ago
1.2.1
3 years ago
1.2.0
3 years ago
1.1.3
3 years ago
1.1.1
3 years ago
1.0.2
3 years ago
1.1.0
3 years ago
1.0.1
3 years ago
1.0.0
3 years ago
1.0.0-beta.3
3 years ago
1.0.5
3 years ago
1.0.4
3 years ago
1.1.2
3 years ago
1.0.3
3 years ago
1.0.0-beta.2
3 years ago
1.0.0-beta.1
3 years ago