Skip to content

Instantly share code, notes, and snippets.

@craigmdennis
Last active November 19, 2015 09:58
Show Gist options
  • Save craigmdennis/0175bced18d89f630da3 to your computer and use it in GitHub Desktop.
Save craigmdennis/0175bced18d89f630da3 to your computer and use it in GitHub Desktop.
IE Conditional Comments Jade Mixin
// 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")
@kpuzyrenko
Copy link

Big thanks for the tip!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment