Render url with query parameters
问题 Can't find solution to a simple problem, the answer should be obvious. How to render url with a query parameters inside hamlet template? I.e. @{ItemsR} will generate http://localhost:3000/items and how do I generate something like http://localhost:3000/items?page=10&sort=name ? 回答1: Yesod is RESTful, you should use arguments in url format (eg. /items/page/10/sortby/name ) if you wish use QueryString format then, you loss the Yesod type safe url management. Below example show how use different