Skip to content
/ htmljs Public

A simple, but powerful HTML templating library.

License

Notifications You must be signed in to change notification settings

jdboris/htmljs

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

9 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

htmljs

A simple, but powerful HTML templating library. It allows creating UI elements in a declarative way, similar to JSX, but with no dependencies or transpiling.

Usage

import html from "https://cdn.jsdelivr.net/gh/jdboris/htmljs@latest/html.js";

const Button = () => html`<button>Submit</button>`;

const Form = () => html`
  <form
    ${{
      onsubmit: () => {
        console.log("Submission!");
      },
    }}
  >
    ${Button()}
  </form>
`;

document.body.append(Form());

About

A simple, but powerful HTML templating library.

Resources

License

Stars

Watchers

Forks

Packages

No packages published