semantic.js
function(errors) {
      var
        html = '<ul class="list">'
      ;
      $.each(errors, function(index, value) {
        html += '<li>' + value + '</li>';
      });
      html += '</ul>';
      return $(html);
    }
function(errors) {
      var
        html = '<ul class="list">'
      ;
      $.each(errors, function(index, value) {
        html += '<li>' + value + '</li>';
      });
      html += '</ul>';
      return $(html);
    }
function ( errors ) { var html = '<ul class="list">' ; $ . each ( errors , function ( index , value ) { html += '<li>' + value + '</li>' ; } ) ; html += '</ul>' ; return $ ( html ) ; }
template that produces error message
template that produces error message