"use static";

function numberWithCommas(number) {
    var parts = number.toString().split(".");
    parts[0] = parts[0].replace(/\B(?=(\d{3})+(?!\d))/g, ",");
    return parts.join(".");
}

Handlebars.registerHelper('commas', numberWithCommas);


Format numbers with thousand seperators
Format numbers with thousand seperators
