Skip to content

Releases: ernestmarcinko/htmx-serverless

v0.1.7

18 Oct 11:43
Compare
Choose a tag to compare

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

17 Oct 12:58
Compare
Choose a tag to compare

Fixed a few issues and added some examples.

  • Feature: handlers now can be functions

v0.1.5

16 Oct 15:31
Compare
Choose a tag to compare

I was dumb. Now it should be okay finally.

v0.1.1

16 Oct 13:06
Compare
Choose a tag to compare
  • Just updated the package.json to exclude files from npm

v0.1.0

16 Oct 13:00
Compare
Choose a tag to compare

First release.

  • htmxServerless export to the window scope
  • use htmxServerless.handlers Map to define path->respose keypairs