No description
| src | som fancy stuff | |
| .gitignore | init | |
| dprint.json | init | |
| package.json | som fancy stuff | |
| pnpm-lock.yaml | som fancy stuff | |
| README.md | som fancy stuff | |
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>