define([
    '../BaseRenderer',
    "dojo/_base/declare",
    "handlebars/handlebars"
], function (BaseRenderer, declare) {

    // TODO extract helpers to customer and standard configuration folders
    Handlebars.registerHelper('equals', function (a, b, options) {
        if (a == b) {
            return options.fn(this);
        }
    });
    Handlebars.registerHelper('gt', function (a, b, options) {
        if (a > b) {
            return options.fn(this);
        }
    });
    Handlebars.registerHelper('gte', function (a, b, options) {
        if (a >= b) {
            return options.fn(this);
        }
    });
    Handlebars.registerHelper('link', function (url, options) {
        return "javascript:preview('" + url + "');";
    }); 

    Handlebars.registerHelper('formatCurrency', function (value, options) {
        return value/100;
    });


    return declare([BaseRenderer], {
       renderTemplate: function (code, ctx, partials) {
            Object.keys(partials).forEach(function (key) {
                Handlebars.registerPartial(key, partials[key]);
            });
            var template = Handlebars.compile(code);
            return template(ctx);
        }
    })
})


@@ -609,32 +609,155 @@
       %7D%0A    %7D);%0A
+    Handlebars.registerHelper('style-tag', function (styles, options) %7B%0A        return %22%3Cstyle%3E%22+styles+%22%3C/style%3E%22%0A    %7D);%0A
     Handlebars.r

add helper for stylesheet