Skip to main content
Home

@fartlabs/ht@0.0.10
Built and signed on GitHub Actions

An HTML rendering library.

It is unknown whether this package works with Cloudflare Workers, Node.js, Deno, Bun, Browsers
It is unknown whether this package works with Cloudflare Workers
It is unknown whether this package works with Node.js
It is unknown whether this package works with Deno
It is unknown whether this package works with Bun
It is unknown whether this package works with Browsers
JSR Score
88%
Published
2 months ago (0.0.10)

@fartlabs/ht

JSR score GitHub Actions

An HTML rendering library.

Getting started

1. Install Deno.

2. Start a new Deno project.

deno init

3. Add html as a project dependency.

deno add jsr:@fartlabs/ht

4. Add a file ending in .[j|t]s to your project. For example, main.ts.

import { a } from "@fartlabs/ht";

const html = a({ href: "https://jsr.io/@fartlabs/ht" }, "@fartlabs/ht");

Deno.writeTextFileSync("index.html", html);

5. Compile your html by running the .[j|t]s file.

deno run --allow-write main.ts

Resulting index.html:

<a href="https://jsr.io/@fartlabs/ht">@fartlabs/ht</a>

Contribute

We appreciate your help!

Style

Run deno fmt to format the code.

Run deno lint to lint the code.

Run deno task generate to generate code.


Developed with ❤️ @FartLabs

Built and signed on
GitHub Actions

New Ticket: Report package

Please provide a reason for reporting this package. We will review your report and take appropriate action.

Please review the JSR usage policy before submitting a report.

Add Package

deno add jsr:@fartlabs/ht

Import symbol

import * as ht from "@fartlabs/ht";
or

Import directly with a jsr specifier

import * as ht from "jsr:@fartlabs/ht";

Add Package

pnpm i jsr:@fartlabs/ht
or (using pnpm 10.8 or older)
pnpm dlx jsr add @fartlabs/ht

Import symbol

import * as ht from "@fartlabs/ht";

Add Package

yarn add jsr:@fartlabs/ht
or (using Yarn 4.8 or older)
yarn dlx jsr add @fartlabs/ht

Import symbol

import * as ht from "@fartlabs/ht";

Add Package

vlt install jsr:@fartlabs/ht

Import symbol

import * as ht from "@fartlabs/ht";

Add Package

npx jsr add @fartlabs/ht

Import symbol

import * as ht from "@fartlabs/ht";

Add Package

bunx jsr add @fartlabs/ht

Import symbol

import * as ht from "@fartlabs/ht";