I use slim as view template engine http://slim-lang.com/
How would you write the following piece of code with slim?
thanks
<!--[if lt IE 9]>
<script src="http://html5shim.googlecode.com/svn/trunk/html5.js"></script>
<![endif]-->
It should use /!
/![if lt IE 9]><script src="http://html5shim.googlecode.com/svn/trunk/html5.js"></script><![endif]
Looking through the documentation github-slim-template/slim I found:
IE conditional comment /[...]
/[if IE]
p Get a better browser.
renders as
<!--[if IE]><p>Get a better browser.</p><![endif]-->
In your case you could write:
/[if lt IE 9]
script src="http://html5shim.googlecode.com/svn/trunk/html5.js"
Looking at Slim's source code for Slim::Parser, it seems that you can do it this way, although I haven't tried.
/[if lt IE 9]
<script src='http://html5shim.googlecode.com/svn/trunk/html5.js'></script>
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With