garlic0x1 / cl-webui

webui bindings for Common Lisp

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

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

Feel free to contribute ways to load webui for Mac or Windows.

About

webui bindings for Common Lisp


Languages

Language:Common Lisp 100.0%