dunlin/dunlin.fnl
Daniel Barlow e2c6e2c5f6 use CamelCase for tables/modules that implement classes
Frame => bound to (require :frame)
frame => result of evaluating (Frame.new)
2022-12-20 12:28:32 +00:00

14 lines
310 B
Fennel

(local lgi (require :lgi))
(local lfs (require :lfs))
(local { : Gtk : Gdk : WebKit2 : cairo } lgi)
(local Frame (require :frame))
(local Buffer (require :buffer))
(let [f (Frame.new)
b (Buffer.new "main")]
(f:show-buffer b)
(b:visit (.. "file://" (lfs.currentdir) "/doc/index.html")))
(Gtk.main)