specifying favicon in a type-safe manner

19 views
Skip to first unread message

akonsu

unread,
Sep 4, 2011, 12:06:40 AM9/4/11
to Yesod Web Framework
hello,

as you know, in a hamlet template designed for html5, a favicon can be
specified by

<link rel="icon" href=@{FaviconR} sizes="32x32" type="image/png">

this compiles with no errors if getFaviconR returns an .ICO file, or
any other file other than PNG. so there is no relation between what I
put in the attributes in the <lnk> above and what my route returns.

is there a way to make it no compile if the <link> contains wrong
"type" attribute?

thanks
konstantin
Reply all
Reply to author
Forward
0 new messages