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
Post a Comment