Skip to content

Puddi Web v0.2.0

Latest

Choose a tag to compare

@lemonhub-io lemonhub-io released this 28 Nov 10:41

Puddi Web now supports bidirectional JavaScript calls on the Puddi v0.1.2 browser target.

  • Register named JS functions with loadWeb bindings and call them with js.call or js.call_async.
  • Expose synchronous Puddi handlers with js.expose and invoke them from JavaScript with app.callPuddi.
  • Pass JSON values in both directions, handle errors on either side, and remove registered handlers with js.unexpose.

Install with pud add github.com/puddi-lang/puddi-web@0.2.0 and use the attached adapter with the generated puddi.mjs.