Skip to content

bigskysoftware/_hyperscript

Repository files navigation

//_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.14"></script>


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


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

<button _="on click call aJavascriptFunction() then
           wait 10s then
           call anotherJavascriptFunction()">
           Do some stuff
</button>

website & docs

contributing

  • please include test cases in /test and docs in /www
    • you can run the test suite by viewing test/index.html in a browser.
  • development pull requests should be against the dev branch, docs fixes can be made directly against master
  • you can build _hyperscript as shown: npm run dist. building is not necessary during development to run tests.

About

a small scripting language for the web

Topics

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Contributors 87

Languages

pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy