WORK IN PROGRESS
Contributions welcome - by PR please if possible.
See Issues for feature discussions.
This repository provides a raku Cro implementation of the HTMX examples from https://htmx.org/examples.
Install raku - eg. from rakubrew, then:
zef install --/test cro
zef install Cro::WebApp
git clone https://github.com/librasteve/raku-HTMX-Examples.git
cd raku-HTMX-Examples
&&zef install .
cro stub http examples examples
(OK all the defaults)cp -R lib static templates ./examples
cd examples
&&cro run
- Open a browser and go to
http://localhost:20000
You will note that cro has many other options as documented at Cro if you want to deploy to a production server.
- In development set CRO_DEV=1 in the environment
- You can use
warn $data.raku; $*ERR.flush;
to say to the cro log window - The Keyboards Shortcut on htmx.org is flaky on my mac - this example replicates the htmx.org behaviour but probably needs tweaking
- The Dialogs - Pico example is new, using JS from the htmx.org sandbox
librasteve [email protected]
Copyright 2024 Contributors
This library is free software; you can redistribute it and/or modify it under the Artistic License 2.0.