Svelte Htm screenshot

Svelte Htm

Author Avatar Theme by Kenoxa
Updated: 8 Nov 2022
27 Stars

tagged template syntax for svelte to simplify testing

Overview

The svelte-htmHyperscript Tagged Markup for svelte is a tool that allows developers to write svelte components in a jsx-like syntax using Standard JavaScript Tagged Templates. It works in all modern browsers and in node. This tool is particularly useful for testing svelte components.

Features

  • Write svelte components in jsx-like syntax in Standard JavaScript Tagged Templates
  • Works in all modern browsers and in node
  • Allows for reactivity using stores
  • Action properties lack the possibility to pass parameters to the action

Installation

To install the svelte-htmHyperscript Tagged Markup for svelte, follow these steps:

  1. Import it into your project.
  2. Alternatively, you can use the UNPKG or jsDelivr packages with script tags and globals.
  3. You can also hotlink it from UNPKG without needing a build tool.

Summary

The svelte-htmHyperscript Tagged Markup for svelte is a tool that simplifies the process of writing svelte components in a jsx-like syntax using Standard JavaScript Tagged Templates. It provides reactivity using stores and offers feasible workarounds for cases where svelte features are not fully supported. This tool is open-source and licensed under the MIT license.