/hc

Hypertext connection for dynamic web pages (unreleased)

Primary LanguageOCamlISC LicenseISC

Hc — Hypertext connection for dynamic web pages

%%VERSION%%

Hc declares dynamic web pages by using HTML data attributes to seamlessly update the page with HTML fragments requested from the server.

Using hypertext as the interaction substrate keeps logic on the server and, in the simplest cases, reduces front-end client code to custom CSS animations and inclusion of a generic JavaScript driver.

Hc is distributed under the ISC license. Compilation of the JavaScript driver depends on brr.

Homepage: https://erratique.ch/software/hc

Installation

hc can be installed with opam:

opam install hc

If you don't use opam consult the opam file for build instructions.

Documentation

The documentation can be consulted online or via odig doc hc.

Questions are welcome but better asked on the OCaml forum than on the issue tracker.

Examples

The hc-examples executable serves examples to show case hypertext interaction strategies. It is installed if webs is. Install hc with tests to ensure it gets installed:

opam install hc --with-test

Acknowledgments

Hc was inspired by htmx.