Skip to content

anguishjs/spite

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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>

About

Simple pure-HTML templates

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published