[web-devel] [Yesod] Nesting widgets

Mats Rauhala mats.rauhala at gmail.com
Tue Jun 7 12:57:19 CEST 2011


On 06:46 Tue 07 Jun     , Michael Snoyman wrote:
> On Mon, Jun 6, 2011 at 11:40 PM, Mats Rauhala <mats.rauhala at gmail.com> wrote:
> > On 20:37 Mon 06 Jun     , Michael Snoyman wrote:
> >> Sorry for a terse reply, but the trick is to replace addHamlet with
> >> addWidget, and the original code should work. Let me know if you're
> >> still having trouble, I should have more time to respond next week.
> >
> > Does that mean that with the basic hamlet package, you can't reuse html?
> 
> I'm not sure what the question means, but to my knowledge there's no
> problem with HTML reuse. Can you clarify?
> 

A while ago I tried to insert hamlet html into another hamlet template,
but all of it came out escaped. I figured after your post that it
doesn't happen with addWidget, but addWidget is part of the yesod-core
package.


-- 
Mats Rauhala
MasseR
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 198 bytes
Desc: not available
URL: <http://www.haskell.org/pipermail/web-devel/attachments/20110607/169cda94/attachment.pgp>


More information about the web-devel mailing list