1
0
Fork 0
mirror of https://github.com/haml/haml.git synced 2022-11-09 12:33:31 -05:00

Document downlevel-revealed conditional comments

This commit is contained in:
Matt Wildig 2013-08-21 22:43:59 +01:00
parent 41a5d9da31
commit cef861858d

View file

@ -772,6 +772,21 @@ is compiled to:
</a>
<![endif]-->
To generate “downlevel-revealed” conditional comments, where the content is
hidden from IE but not other browsers, add a `!` before the brackets: `/![]`.
Haml will produce valid HTML when generating this kind of conditional comment.
For example:
/![if !IE]
You are not using Internet Explorer, or are using version 10+.
is compiled to:
<!--[if !IE]><!-->
You are not using Internet Explorer, or are using version 10+.
<!--<![endif]-->
### Haml Comments: `-#`
The hyphen followed immediately by the pound sign signifies a silent comment.