Give the following code in a .hamlc template:
.myDiv
some content here
What if I wanted to add the class "special" to the div.myDiv based on a property of the model passed to the template.
so if is_special property of the model was true, the output would be what is shown below:
<div class="myDiv special">
some content here
</div>
and if is_special was false, the output would be:
<div class="myDiv">
some content here
</div>