danidiaz / lucid2-example

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

An example of HTML generation using lucid2

lucid2 on Hackage.

The HTML is served using a simple wai application, run with the warp server.

Development

For formatting:

ormolu --mode inplace $(git ls-files '*.hs')

Running in the background:

ghcid -r

To refresh the server every time the code changes. (Pending: how to auto-reload the page?)

Also running in the background:

npx tailwindcss -i ./input.css -o ./output.css --watch

This is using the tailwind CLI to continuously watch the Haskell source file (according to tailwind.config.js) and generate an output.css file that can be linked from the page. See the docs for Tailwind installation.

About


Languages

Language:Haskell 84.6%Language:JavaScript 10.9%Language:CSS 4.5%