No description
  • TypeScript 100%
Find a file
2024-05-12 20:34:20 -03:00
src som fancy stuff 2024-05-12 20:34:20 -03:00
.gitignore init 2024-04-27 00:02:42 -03:00
dprint.json init 2024-04-27 00:02:42 -03:00
package.json som fancy stuff 2024-05-12 20:34:20 -03:00
pnpm-lock.yaml som fancy stuff 2024-05-12 20:34:20 -03:00
README.md som fancy stuff 2024-05-12 20:34:20 -03:00

Spite

Spite is a simple templating language which is purely HTML-based, intended to complement Anguish.

It doesn’t aim to be a full framework like Astro, but rather makes it easy to integrate in any build system by exposing a simple API.

import { render } from "@anguish/spite";

const components = {
  button: `
    <button class="btn" x-bind>
      <slot></slot>
    </button>
  `,
};

render(`<x-button class="pink">Click me!</x-button>`, { components });
// <button class="btn pink">Click me!</button>