Write an ‘alert’ helper 

[% IF alert %]
<div class="container">
  <div class="row">
    <div class="[% alert_span %]">
      <div class="alert [% alert_type %]">
        <button class="close" data-dismiss="alert">x</button>
        [% alert %]
      </div>
    </div>
  </div>
</div>
[% END %]