Support static variable.

pull/165/head
ruibaby 2019-05-18 23:51:11 +08:00
parent 589b43ef2a
commit c17ca77ba2
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");
}