An article by Brad Peabody about Vugu andd WwebAssembly. Vugu is a Go library that makes it easy to write HTML markup and Go code which is compiled and run in the browser using WebAssembly.
To put it differently: Vugu lets you write single-page web applications (SPAs) starting with HTML layout and using Go to handle program logic.
The article dives into the topic:
- How it Works
- Hello, World
- But Why?
- What Makes Web Development Productive
- Reactive web programming has proven its effectiveness
… and more. The example code is also available in this repo. While Vugu is in its infancy, it still supports many features one would expect in a complete web UI library or framework: single-file components, event handling, conditions and loops with vg-if and vg-for, nested components with properties, static html generation, a caching system to reduce unnecessary updates, a development server to handle the edit/build/reload cycle upon page refresh, a basic playground. Give it a try!
[Read More]