Support static variable.

pull/167/head^2
ruibaby 2019-05-18 23:51:11 +08:00 committed by John Niang
parent 528cecc9f9
commit 735b9f3aa1
1 changed files with 1 additions and 0 deletions

View File

@ -93,6 +93,7 @@ public class FreemarkerConfigAwareListener {
private void loadThemeConfig() throws TemplateModelException {
configuration.setSharedVariable("theme", themeService.getActivatedTheme());
configuration.setSharedVariable("static", themeService.getActivatedTheme().getFolderName());
configuration.setSharedVariable("settings", themeSettingService.listAsMapBy(themeService.getActivatedThemeId()));
log.debug("Loaded theme and settings");
}