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:
parent
41a5d9da31
commit
cef861858d
1 changed files with 15 additions and 0 deletions
15
REFERENCE.md
15
REFERENCE.md
|
@ -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.
|
||||
|
|
Loading…
Add table
Reference in a new issue