REFACTOR: Add themeSettings to the helperContext to avoid a global

This commit is contained in:
Robin Ward
2020-08-14 13:31:43 -04:00
parent 8ac85f54fb
commit 41fd7a8b72
4 changed files with 7 additions and 10 deletions

View File

@@ -46,10 +46,8 @@ export function registerHelpers(registry) {
}
let _helperContext;
export function createHelperContext(siteSettings) {
_helperContext = {
siteSettings
};
export function createHelperContext(ctx) {
_helperContext = ctx;
}
// This can be used by a helper to get the SiteSettings. Note you should not