apostrophe icon indicating copy to clipboard operation
apostrophe copied to clipboard

Refactor templates.addToApos as templates.addHelpers

Open benirose opened this issue 11 years ago • 1 comments

When we want to add functions to the apos object for use in nunjucks templates, we currently have written a function called addToApos. We realized that these are helper functions, as defined by multiple MVC libraries. This is a good name, and we should use it too.

One thing to consider, is that it doesn't translate as well if you're trying to add an object/property to the apos object. Perhaps leave both of them available?

benirose avatar Apr 03 '15 20:04 benirose

Done.

jth- avatar Jan 15 '16 21:01 jth-