4

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.

Stephan Kulla
  • 4,739
  • 3
  • 26
  • 35

1 Answers1

7

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]-->
Samvel Truzyan
  • 186
  • 1
  • 3