bigskysoftware / _hyperscript

a small scripting language for the web
BSD 2-Clause "Simplified" License
2.93k stars 144 forks source link
htmx hyperscript scripting-language

//_hyperscript

the underscore is silent

introduction

_hyperscript is a small, open scripting language inspired by hypertalk

it is a companion project of https://htmx.org

quickstart


<script src="https://unpkg.com/hyperscript.org@0.9.12"></script>

<button _="on click toggle .clicked">
  Toggle the "clicked" class on me
</button>

<div hs="on mouseOver toggle mouse-over on #foo">
</div>

<div data-hs="on click call aJavascriptFunction() then
              wait 10s then
              call anotherJavascriptFunction()">
           Do some stuff
</div>

website & docs

contributing