I'm using dust.js to render a list of variable names that are sometimes long and contain underscores like:
SUM_COUNT_LABOR_COUNTRIES_SMS_PAST
The browser doesn't wrap on underscores so it can get ugly. I'd like my dust template to add a zero-width space after each underscore so the browser can wrap it. This definitely belongs in the template layer and not with the model, but I can't figure out how to properly achieve this with dust.js and it's otherwise very good principle of separating presentation from logic.
Do I create a "helper" function? Where do I put the helper function? How do I call it from the template?