observable-framework-lib-htl

Community

Safe HTML templating with HTL.

Authorspqw
Version1.0.0
Installs0

System Documentation

What problem does it solve?

This Skill addresses the need for securely rendering HTML content within Observable Framework projects by leveraging the Hypertext Literal (htl) library for safe and context-aware templating.

Core Features & Use Cases

  • Safe HTML Templating: Automatically escapes interpolated values to prevent cross-site scripting (XSS) vulnerabilities.
  • Contextual Interpolation: Handles non-serializable values like event listeners and DOM nodes gracefully.
  • SVG Generation: Provides a dedicated method for generating safe SVG fragments.
  • Use Case: Dynamically generate complex HTML structures, such as interactive tables or charts with embedded event handlers, without compromising security.

Quick Start

Use the htl library to render a button with a click event listener.

Dependency Matrix

Required Modules

None required

Components

Standard package

💻 Claude Code Installation

Recommended: Let Claude install automatically. Simply copy and paste the text below to Claude Code.

Please help me install this Skill:
Name: observable-framework-lib-htl
Download link: https://github.com/spqw/skill-observable-framework/archive/main.zip#observable-framework-lib-htl

Please download this .zip file, extract it, and install it in the .claude/skills/ directory.
View Source Repository

Agent Skills Search Helper

Install a tiny helper to your Agent, search and equip skill from 223,000+ vetted skills library on demand.