[Haskell-cafe] Yesod a href render issue

Felipe Almeida Lessa felipe.lessa at gmail.com
Sat Sep 1 03:04:41 CEST 2012


On Fri, Aug 31, 2012 at 9:45 PM, David McBride <toad3k at gmail.com> wrote:
> Hamlet is whitespace sensitive like haskell and python.  If you put a tag
> after text, it is treated as text.
>
> Write the <a... on the next line and it will work.

Another option is to manually put the closing </a> when the tag is in
the middle of the line.  This is especially useful for tags such as
<em> or <strong>, e.g.

  This is <strong>very</strong> important!

vs.

  This is #
  <strong>very
  \ important!

Cheers,

-- 
Felipe.



More information about the Haskell-Cafe mailing list