Conditional comments in Hamlet
janvogt opened this issue · 3 comments
janvogt commented
Hamlet removes HTML comments, including conditional comments. So sth. like
<!--[if IE 6]>
<p>You are using Internet Explorer 6.</p>
<![endif]-->
does not work.
Is it possible to exempt these like it has been done for <!-- #SSI -->
?
I guess it would be a little bit more involved to achieve sth. like this.
<!--[if IE 6]>
<p>You are using Internet Explorer 6.
I don't feel confident enough in TemplateHaskell to try implementing it myself. So right now, I am doing this as a workaround:
<p><!--[if IE 6]><p>You are using Internet Explorer 6.</p><![endif]-->
snoyberg commented
I haven't tested this myself, but does putting a backslash at the beginning
of the line work?
…On Fri, Feb 1, 2019 at 7:09 PM Jan Vogt ***@***.***> wrote:
Hamlet removes HTML comments, including conditional comments
<https://en.wikipedia.org/wiki/Conditional_comment>. So sth. like
<!--[if IE 6]><p>You are using Internet Explorer 6.</p><![endif]-->
does not work.
Is it possible to exempt these like it has been done for <!-- #SSI -->?
I guess it would be a little bit more involved to achieve sth. like this.
<!--[if IE 6]>
<p>You are using Internet Explorer 6.
I don't feel confident enough in TemplateHaskell to try implementing it
myself. So right now, I am doing this as a workaround:
<p><!--[if IE 6]><p>You are using Internet Explorer 6.</p><![endif]-->
—
You are receiving this because you are subscribed to this thread.
Reply to this email directly, view it on GitHub
<#235>, or mute the thread
<https://github.com/notifications/unsubscribe-auth/AADBBwlhigaZ69P40RCO2JEeTPHcFsMSks5vJHTVgaJpZM4aet_->
.
snoyberg commented
You're welcome, my pleasure!
…On Sat, Feb 2, 2019, 8:50 PM Jan Vogt ***@***.***> wrote:
@snoyberg <https://github.com/snoyberg> prefect! This works. Thanks a lot.
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
<#235 (comment)>,
or mute the thread
<https://github.com/notifications/unsubscribe-auth/AADBBwMRPNvbgecns9aRCS9rKfm-newxks5vJd4LgaJpZM4aet_->
.