Skip to content

haskell-miso/servant-miso-html

Repository files navigation

servant-miso-html

This package provides an HTML content type for use with servant APIs. This can be used to render miso View / Component types as HTML.

Usage

import Servant.Miso.Html (HTML)

type Home = "home" :> Get '[HTML] (Component model action)
type About = "about" :> Get '[HTML] (View model action)
type Contact = "contact" :> Get '[HTML] [View model action]
type API = Home :<|> About :<|> Contact

Build

cabal build
nix develop --command bash -c 'cabal build'

Develop

nix develop

About

Render miso View as HTML with servant

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Sponsor this project

  •  

Packages

No packages published