문제

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.

도움이 되었습니까?

해결책

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]-->
라이센스 : CC-BY-SA ~와 함께 속성
제휴하지 않습니다 StackOverflow
scroll top