1<div .alert .fade .in .#{divclass} :block:.alert-block ##{alertid}> 2 $if closable 3 <a .close onclick="(function( $ ) { $.get('@{CloseAlert aid}') })( jQuery );">×</a> 4 $maybe h <- renderAlertHeader alert 5 $if block 6 <h4 .alert-heading> 7 $maybe i <- alertIcon alert 8 ^{htmlIcon i} # 9 #{h} 10 $else 11 $maybe i <- alertIcon alert 12 ^{htmlIcon i} # 13 <strong>#{h} 14 \ 15 $nothing 16 $maybe i <- alertIcon alert 17 ^{htmlIcon i} # 18 $if multiline 19 $forall l <- messagelines 20 #{l}<br> 21 $else 22 #{message} 23 $if not (null buttons) 24 <br> 25 $forall (button, bnum) <- buttons 26 <a .btn :buttonPrimary button:.btn-primary :not (buttonPrimary button):.btn-success href="@{ClickAlert aid bnum}"> 27 #{buttonLabel button} 28