Add the following code to your project's shard.yml under:
to use in production
- OR -
development_dependencies to use in development
GTK4 version of this project with proper integration using Duktape is available here.
Keep in mind:
None of the components generated by Layout contain anything remotely related to a Web-Browser.
Compiled binary reads the custom HTML and builds the GTK components. Since it is already a pre-built release version, it is pretty fast at generating the UI components.
Before you clone the shard and build it, install the GTK libraries.
git clone email@example.com:grkek/haki.git cd haki shards install
# The GTK_DEBUG environment constant spawns a separate window # with which you can debug UI elements. GTK_DEBUG=interactive crystal run example/application.cr