[v3 examples/bindings] correct binding output + example

- disable output of `import <model> from models` line
- update README to generate bindings in usable location for HTML
- update HTML to reference bindings correctly
- update javascript to call and process the bound Greet function
This commit is contained in:
Travis McLane
2023-10-31 17:24:00 -05:00
parent 144567410d
commit c6ecbd56e5
7 changed files with 35 additions and 35 deletions
+2 -2
View File
@@ -2,10 +2,10 @@
This example demonstrates how to generate bindings for your application.
To generate bindings, run `wails3 generate bindings` in this directory.
To generate bindings, run `wails3 generate bindings -d assets` in this directory.
See more options by running `wails3 generate bindings --help`.
## Notes
- The bindings generator is still a work in progress and is subject to change.
- The generated code uses `wails.CallByID` by default. This is the most secure and quickest way to call a function. In a future release, we will look at generating `wails.CallByName` too.
- The generated code uses `wails.CallByID` by default. This is the most secure and quickest way to call a function. In a future release, we will look at generating `wails.CallByName` too.