Question

How can I add conditional comments (or any kind of Html comment) to Shakespearean templates?

If I add

<!--[if IE 6]>
<link type="text/css" rel="stylesheet" href="..." media="screen">
<![endif]-->

to my hamlet template just an empty line is generated.

Was it helpful?

Solution

Scaffolded project have an example of conditional comments at templates/default-layout-wrapper.hamlet:

\<!--[if lt IE 7]> <html class="no-js ie6 oldie" lang="en"> <![endif]-->
Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top