htmx/www/index.md
2020-05-07 06:26:16 -07:00

1.1 KiB

layout title
layout.njk </> kutty - high power tools for html
</> kutty high powered tools for HTML

Introduction

Kutty is a set of HTML extensions (attributes, request headers, etc.) that help you build advanced UX with the simplicity and power of the hypertext we all know and love.

Kutty is a small (<6Kb min.gz'd), dependency-free & you can try it out quickly, without a huge rewrite.

Quick Start

  <!-- Load from unpkg -->
  <script src="https://unpkg.com/kutty.org@0.0.1"></script>
  <!-- have a button POST a click via AJAX -->
  <button kt-post="/clicked" kt-swap="outerHTML">
    Click Me
  </button>

This annotation tells kutty:

"When a user clicks on this button, issue an AJAX request to /example, and replace the button with the response"

Kutty is based on intercooler.js and is the successor to that project.