
The cookbook for existing hyperscripts you can start using and modifying for your own needs.Some other hypserscript resources you may want to check out are: It can be a bit tricky to write at firstįor some people who are used to other programming languages, but it reads very clearly once you are done.Ĭode is typically read many more times than it is written, so this tradeoff is a good one for simpleīelow you will find an overview of the various features, commands and expressions in hyperscript, as well as links to Hyperscript favors read time over write time when it comes to code. It is very easy to read, making it obvious what a script is doing.It is very distinctive, making it obvious when hyperscript is being used in a web page.This unusual syntax has advantages, once you get over the initial shock: Like english than the programming languages you are probably used to. Hyperscript is part of the xTalk family of scripting languages, which The next thing you will notice about hyperscript is its syntax, which is very different than most programming languages Other examples of libraries going this direction are Tailwind CSS,


Of technologies that de-emphasize Separation of Concerns
SCRIPT DEBUGGER ADD SDEF CODE
The first thing to notice is that hyperscript is defined directly on the button, using the _ (underscore) attribute.Įmbedding code directly on the button like this might seem strange at first, but hyperscript is one of a growing number Here is a simple example of some hyperscript: Example Respond to events and do simple DOM manipulation in code that is directly embedded on elements on a web page. Hyperscript is a scripting language for doing front end web development.
