Embedding hamlet that was binded in hamlet

I guess this hamlet code shouldn't work currently: $maybe link <- mlink ^link^ I think that's too bad, as it is very useful sometimes. Maybe we should make it work? Is it too hard? Cheers, Aur

On Thu, May 5, 2011 at 12:41 AM, Aur Saraf
I guess this hamlet code shouldn't work currently:
$maybe link <- mlink ^link^
I think that's too bad, as it is very useful sometimes. Maybe we should make it work? Is it too hard?
Cheers, Aur
I would like to emphasize how useful this code is: <table> $forall row <- makeRow dbRows <tr> ^row^ There's no other way I know to do this, and without it I'm stuck with no option to separate my HTML generation to functions where it makes most sense. Cheers, Aur

On Thu, May 5, 2011 at 1:20 AM, Aur Saraf
On Thu, May 5, 2011 at 12:41 AM, Aur Saraf
wrote: I guess this hamlet code shouldn't work currently:
$maybe link <- mlink ^link^
I think that's too bad, as it is very useful sometimes. Maybe we should make it work? Is it too hard?
Cheers, Aur
I would like to emphasize how useful this code is:
<table> $forall row <- makeRow dbRows <tr> ^row^
There's no other way I know to do this, and without it I'm stuck with no option to separate my HTML generation to functions where it makes most sense.
The only reason it won't work is because you are using the wrong interpolation syntax (^foo^ instead of ^{foo}). Did you run into a specific bug? Michael

Ah.
The moment I saw it not working I remembered something I once read
about ^^ not supporting expressions like the other interpolations, and
dropped it, worked around it and filed a bug. Hence "I guess this
hamlet code shouldn't work currently".
My mistake :-)
On Thu, May 5, 2011 at 6:09 AM, Michael Snoyman
On Thu, May 5, 2011 at 1:20 AM, Aur Saraf
wrote: On Thu, May 5, 2011 at 12:41 AM, Aur Saraf
wrote: I guess this hamlet code shouldn't work currently:
$maybe link <- mlink ^link^
I think that's too bad, as it is very useful sometimes. Maybe we should make it work? Is it too hard?
Cheers, Aur
I would like to emphasize how useful this code is:
<table> $forall row <- makeRow dbRows <tr> ^row^
There's no other way I know to do this, and without it I'm stuck with no option to separate my HTML generation to functions where it makes most sense.
The only reason it won't work is because you are using the wrong interpolation syntax (^foo^ instead of ^{foo}). Did you run into a specific bug?
Michael
participants (2)
-
Aur Saraf
-
Michael Snoyman