Handlebars.registerHelper('department_code', function (id) {
  return new Handlebars.SafeString(Yacs.models.departments.store.id[id].code);
});

Handlebars.registerHelper('range', function (min, max) {
  return new Handlebars.SafeString(min == max ? max : min + '-' + max);
});

Handlebars.registerHelper('join', function (arr) {
  return new Handlebars.SafeString(arr.join(', '));
});

Handlebars.registerHelper('subtract', function (a, b) {
  return new Handlebars.SafeString(a - b);
});

Yacs.views.courses = function (data) {
  var html = HandlebarsTemplates.courses(data);
  console.log(html);
  console.log(data);
  setTimeout(function () {
    document.querySelector('#content').innerHTML = html;
  }, 500);
};

Handlebars.registerHelper('department_code', function (id) {
  return new Handlebars.SafeString(Yacs.models.departments.store.id[id].code);
});

Handlebars.registerHelper('range', function (min, max) {
  return new Handlebars.SafeString(min == max ? max : min + '-' + max);
});

Handlebars.registerHelper('join', function (arr) {
  return new Handlebars.SafeString(arr.join(', '));
});

Handlebars.registerHelper('subtract', function (a, b) {
  return new Handlebars.SafeString(a - b);
});

Yacs.views.courses = function (data) {
  var html = HandlebarsTemplates.courses(data);
  console.log(html);
  console.log(data);
  document.querySelector('#content').innerHTML = html;
};

Undo merge conflict fix with the correct code
Undo merge conflict fix with the correct code
