1
0
Fork
You've already forked spite
0
No description
  • TypeScript 100%
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>