[web-devel] Yesod. Hamlet . Templates

Anton Cheshkov acheshkov at gmail.com
Wed May 25 14:40:23 CEST 2011

Hello Michael,

my question is

i have the follow code

*tpl1 :: tp1 -> tp2 ->  Hamlet MyApp*
*tpl1 p1 p2 = $(hamletFile "hamlet-template")*
*tpl2 :: (tp1,tp2) ->  Hamlet MyApp*
*tpl2 (p1,p2) = $(hamletFile "hamlet-template")*

Now we can use in hamlet  template like

*^{tpl1 p1 p2}*

but next one does not work

^{tpl (p1,p2)}

brackets give some wrong. why ? and how to get around ?

Best regards,
Cheshkov Anton
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.haskell.org/pipermail/web-devel/attachments/20110525/e10fd208/attachment.htm>

More information about the web-devel mailing list