Re: [web-devel] [Yesod] ANN: Wai routes 0.7

On Sun, Jun 28, 2015 at 10:18 AM, Njagi Mwaniki
Another question for you. How can I or recreate the results of functions like widgetFile in yesod? I want to use julius, lucius and hamlet in my wai-routes app.
You don't need a widgetFile function to use Julius and Lucius in wai-routes. Take a look at this small example - https://github.com/ajnsit/wai-routes/blob/master/examples/Hamlet.hs - on how to render Cassius from an external file. The process for including Julius or Lucius should be fairly similar to Cassius. Note that Wai-routes 0.7.1 includes a function called `showRouteQuery` (http://hackage.haskell.org/package/wai-routes-0.7.1/docs/Network-Wai-Middlew...) which is a route renderer in the format that Shakespearean templates expect. -- Anupam
participants (1)
-
Anupam Jain