Last active
November 19, 2015 09:58
-
-
Save craigmdennis/0175bced18d89f630da3 to your computer and use it in GitHub Desktop.
IE Conditional Comments Jade Mixin
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// IE Conditional Comments | |
mixin if-ie(condition) | |
!= "<!--[if " + condition + "]>" | |
block | |
!= "<![endif]-->" | |
mixin not-ie | |
!= "<!--[if !IE]> -->" | |
block | |
!= "<!-- <![endif]-->" | |
//- Useage | |
+if-ie('IE') | |
script(src="//ajax.googleapis.com/ajax/libs/jquery/1.11.1/jquery.min.js") | |
+not-ie | |
script(src="//ajax.googleapis.com/ajax/libs/jquery/2.0.3/jquery.min.js") |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Big thanks for the tip!