Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to add conditional comments to hamlet templates?

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.

like image 424
Stephan Kulla Avatar asked Mar 20 '23 01:03

Stephan Kulla


1 Answers

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]-->
like image 163
Samvel Truzyan Avatar answered Apr 30 '23 12:04

Samvel Truzyan