Skip to content
/ gluon Public

Experiments with running a webkit2gtk backed UI in Haskell

Notifications You must be signed in to change notification settings

teh/gluon

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

24 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

N.B.: This is one of those projects where you need to read the instructions, a simple cabal run won't work, apologies!

What

This project demonstrates how to write a HTML application in Haskell via the webkit2 embedding API.

This code does not run a webserver. It uses the GObject introspection API to access the DOM directly.

Quick start

git clone https://github.com/teh/haskell-webkit2gtk
nix-shell  # stackage: not tried yet if anyone wants to pick that up
cabal build gluon
cabal build plugin
dist/build/gluon/gluon --plugin dist/build/plugin/plugin

SCSS resources

All scss resources are injected as rendered CSS into <head>. Pass them on the command line:

dist/build/gluon/gluon --scss /home/tom/src/bootstrap/scss/bootstrap.scss --plugin dist/build/plugin/plugin

About

Experiments with running a webkit2gtk backed UI in Haskell

Resources

Stars

Watchers

Forks

Packages

No packages published