Re:Yesod 1.0 - a robust, friendly, high performance web fram...
by Vagif-Verdi on Monday April 09, 2012 @10:30PM
(#3820384)
I'm not sure where you get that info. You certainly can close tags in hamlet. (I often do). You just do not have to.
[ Parent
| on HN ]
Re:Yesod 1.0 - a robust, friendly, high performance web fram...
by ique on Tuesday April 10, 2012 @04:08AM
(#3821264)
I'm getting the info from testing. I tried using Yesod for a while but kept getting this error:
"A tag name may not contain a slash. Perhaps you have a closing tag in your HTML."
Which you can find in the source for the parser as well: if '/' `elem` tn
then fail "A tag name may not contain a slash. Perhaps you have a closing tag in your HTML."
Maybe there's a way to work around this so you can use closed tags, but it sure wasn't obvious.