1
1
mirror of https://github.com/srid/ema.git synced 2024-11-25 20:12:20 +03:00

routeUrl: use direct by default

This commit is contained in:
Sridhar Ratnakumar 2022-06-11 12:01:42 -04:00
parent a8c5fa4906
commit 92fc401d5e
2 changed files with 2 additions and 1 deletions

View File

@ -6,6 +6,7 @@ This is a significant release. If you choose to upgrade your apps from 0.6, see
- GHC 9.0 support
- Better handling of URL anchors (#83; #87)
- `routeUrl` uses `UrlDirect` by default. Use `routeUrlWith` if you want to change that.
- Multisite rewrite (Ema is rewritten)
- Add the notion of `RouteEncoder` (first-class values), along with a `IsRoute` class to define them.
- Generic deriving of route encoders, so you do not have to hand-write them.

View File

@ -54,7 +54,7 @@ urlToFilePath =
routeUrl :: RouteEncoder a r -> a -> r -> Text
routeUrl =
routeUrlWith UrlPretty
routeUrlWith UrlDirect
-- | How to produce URL paths from routes
data UrlStrategy