Releases: ernestmarcinko/htmx-serverless
Releases · ernestmarcinko/htmx-serverless
v0.1.7
js:myFunc syntax
js:myFunc syntax can be used in the hx-get, hx-post etc.. tags to define handler functions implicitly.
HTML
<button hx-get="js:myFunc" hx-swap="outerHTML" hx-ext="serverless">
Click to replace via myFunc!
</button>
JS
function myFunc(text, params, xhr) {
return 'Hi!';
}
v0.1.6
Fixed a few issues and added some examples.
- Feature: handlers now can be functions
v0.1.5
I was dumb. Now it should be okay finally.
v0.1.1
- Just updated the package.json to exclude files from npm
v0.1.0
First release.
- htmxServerless export to the window scope
- use
htmxServerless.handlers
Map to define path->respose keypairs