App = {};

Template.registerHelper('withIndex', function (all) {
  return _.map(all, function(val, index) {
      return {index: index, value: val};
  });
});

Template.registerHelper('timestampToDate', function(date) {
  if (_.isDate(date)) {
    return new Date(date);
  }
});

Template.registerHelper('centsToDollars', function(cents) {
    if (_.isNumber(cents)) {
      return parseFloat(cents / 100).toFixed(2);
    }
});

ProductsTemplates.useHelpers(Template);
ProductsTemplates.useEvents(Template);
ProductsTemplates.useCallbacks(Template);



@@ -8,425 +8,45 @@
 %7D;%0A%0A
-Template.registerHelper('withIndex', function (all) %7B%0A  return _.map(all, function(val, index) %7B%0A      return %7Bindex: index, value: val%7D;%0A  %7D);%0A%7D);%0A%0ATemplate.registerHelper('timestampToDate', function(date) %7B%0A  if (_.isDate(date)) %7B%0A    return new Date(date);%0A  %7D%0A%7D);%0A%0ATemplate.registerHelper('centsToDollars', function(cents) %7B%0A    if (_.isNumber(cents)) %7B%0A      return parseFloat(cents / 100).toFixed(2);%0A    %7D%0A%7D);%0A
+GlobalTemplates.useHelpers(Template);
 %0APro
@@ -164,9 +164,82 @@
 late);%0A%0A
-%0A
+Imgix.configSource(%7B%0A  name: '***REMOVED***',%0A  token: '***REMOVED***'%0A%7D);

use helpers/events from packages (pass template as its the only way i know how to do it at the moment)