snap-web-routes-0.5.1.0: Type safe URLs for Snap

Safe HaskellNone
LanguageHaskell2010

Snap.Snaplet.Router.HeistSplices

Synopsis

Documentation

urlSplice Source

Arguments

:: (HasRouter m, PathInfo (URL m)) 
=> URL m

URL data type

-> m [Node] 

Returns the given URL as a Heist splice

urlParamsSplice Source

Arguments

:: (HasRouter m, PathInfo (URL m)) 
=> URL m

URL data type

-> [(Text, Maybe Text)]

Params

-> m [Node] 

Returns the given URL as a Heist splice with query string for params