Code Monkey home page Code Monkey logo

_hyperscript's Introduction

//_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/[email protected]"></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

  • 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.

_hyperscript's People

Contributors

1cg avatar adamchainz avatar ajusa avatar apeckham avatar bencroker avatar benpate avatar dependabot[bot] avatar dz4k avatar dzerrenner avatar freespace avatar gnat avatar grantjenks avatar guettli avatar iredmail avatar jreviews avatar jvosloo avatar michaelsmanley avatar mill3n avatar rajasegar avatar ralfzosel avatar reedspool avatar renerick avatar robinvandernoord avatar rozek avatar smartexpert avatar sponsfreixes avatar steveveepee avatar tomberek avatar wiverson avatar zigellsn avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.