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

docs: routeUrl takes model

fixes #62
This commit is contained in:
Sridhar Ratnakumar 2021-12-09 18:30:51 -05:00 committed by GitHub
parent ad884e4b7c
commit 18fa6ede0e
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -98,7 +98,7 @@ render _emaAction model r = Ema.AssetGenerated Ema.Html . RU.renderHtml $
routeElem targetRoute w =
H.a
! A.style "text-decoration: underline"
! A.href (H.toValue $ Ema.routeUrl targetRoute) $ w
! A.href (H.toValue $ Ema.routeUrl model targetRoute) $ w
```
If everything compiles, you should see the site update in the web browser. A couple of quick points about the `render` function: