Skip to content

Render to a stream #187

@ithinkihaveacat

Description

@ithinkihaveacat

For demos, prototyping and SSR use-cases, it would be useful if lit-html supported rendering to a string. For example:

import {html, render} from 'lit-html';

const helloTemplate = (name) => html`<div>Hello ${name}!</div>`;

// This returns <div>Hello Steve!</div>
render(helloTemplate('Steve'));

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions