This release is 2 versions behind 0.1.3 — the latest version of @classic/html. Jump to latest
Built and signed on GitHub ActionsBuilt and signed on GitHub Actions
Built and signed on GitHub Actions
Render HTML from JSX, attach it ad-hoc JavaScript
This package works with DenoIt is unknown whether this package works with Cloudflare Workers, Node.js, Bun, Browsers




JSR Score
100%
Published
7 months ago (0.1.1)
Render HTML from JSX, attach it ad-hoc JavaScript
Create a working HTML response
Create a working HTML response
import { render } from "@classic/html"; import { assertMatch } from "@std/assert"; const page = ( <html> <head> <title>Working web page</title> </head> <body> <h1>It works!</h1> </body> </html> ); const res = new Response(render(page)); assertMatch(await res.text(), /<h1>It works!<\/h1>/);
Built and signed on
GitHub Actions
Add Package
deno add jsr:@classic/html
Import symbol
import * as html from "@classic/html";
Import directly with a jsr specifier
import * as html from "jsr:@classic/html";
Add Package
pnpm i jsr:@classic/html
pnpm dlx jsr add @classic/html
Import symbol
import * as html from "@classic/html";
Add Package
yarn add jsr:@classic/html
yarn dlx jsr add @classic/html
Import symbol
import * as html from "@classic/html";
Add Package
vlt install jsr:@classic/html
Import symbol
import * as html from "@classic/html";
Add Package
npx jsr add @classic/html
Import symbol
import * as html from "@classic/html";
Add Package
bunx jsr add @classic/html
Import symbol
import * as html from "@classic/html";