Skip to content

danidiaz/lucid2-example

Repository files navigation

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

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Packages

No packages published