rschroll / kutty

</> kutty - high power tools for HTML

Home Page:https://kutty.org

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

</> kutty

high power tools for HTML

Introduction

Kutty is a set of extensions (attributes, request headers, etc.) that help you build modern UI with the simplicity and power of HTML.

Kutty is small (~6k min.gz'd), IE11 compatible, 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>

The kt-post and kt-swap attributes tell kutty:

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

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

Website & Docs

https://kutty.org

https://kutty.org/docs

About

</> kutty - high power tools for HTML

https://kutty.org

License:BSD 2-Clause "Simplified" License


Languages

Language:JavaScript 93.1%Language:HTML 5.3%Language:CSS 1.3%Language:Liquid 0.3%