Skip to content

Latest commit

 

History

History
41 lines (32 loc) · 872 Bytes

README.md

File metadata and controls

41 lines (32 loc) · 872 Bytes

Overview

Bindings for webui.

(let ((w (webui-new-window)))
  (webui-bind w "my-button"
              (lambda (event)
                (declare (ignore event))
                (webui-run w "alert(\"hi\");")))
  (webui-show w "<html>
                   <script src=\"webui.js\"></script>
                   Hello,
                   <button id=\"my-button\">world!</button>
                 </html>")
  (webui-wait))

demo-1

Setup

I installed webui like this on Linux:

git clone https://github.com/webui-dev/webui
cd webui/
make
cp dist/webui-2.so /usr/lib/webui-2.so

Setup for mac

git clone https://github.com/webui-dev/webui
cd webui/
make
sudo cp dist/libwebui-2.dylib /usr/local/lib/libwebui-2.dylib

Feel free to contribute ways to load webui for Windows.