[web-devel] Yesod: embedding the output of a route in hamlet

Max Cantor mxcantor at gmail.com
Thu Oct 14 19:28:35 CEST 2010

Is it possible, without using AJAX, to easily embed the output of a route in Hamlet?

For instance:

getItemDataR :: String -> Handler RepHtml
getItemDataR = defaultLayout $ addBody [$hamlet| ....

getAllItemsR :: Handler RepHtml
getAllItemsR = defaultLayout $ addBody [$hamlet|
$forall ls i
where ls = ["a","b","c"]

something like that?


More information about the web-devel mailing list