internet explorer - Jade - conditional to write out javascript -


im struggling translate html/javascript jade. here source:

<!--[if !ie]> --> <script type="text/javascript">     window.jquery || document.write("<script src='../assets/js/jquery.min.js'>"+"<"+"/script>"); </script> <!-- <![endif]--> 

can advise how define using jade?

current versions of jade don't have syntax conditional comments, can included as-is.

<!--[if !ie]> --> // ... <!-- <![endif]--> 

to include inline javascript, you'll want treated plain text jade doesn't try parse it. 1 option add . suffix element.

script.     window.jquery || document.write("<script src='../assets/js/jquery.min.js'>"+"<"+"/script>"); 

Comments

Popular posts from this blog

java - How to specify maven bin in eclipse maven plugin? -

single sign on - Logging into Plone site with credentials passed through HTTP -

php - Why does AJAX not process login form? -