| | |
| | | templateName = "defualt.article.html"; |
| | | } |
| | | |
| | | cfg.process(data, templateName); |
| | | try { |
| | | cfg.process(data, templateName); |
| | | } catch (Exception e) { |
| | | e.printStackTrace(); |
| | | log.error("发布文章出错", e); |
| | | } |
| | | } |
| | | |
| | | @Override |
| | |
| | | templateName = "defualt.list.html"; |
| | | } |
| | | |
| | | cfg.process(data, templateName); |
| | | try { |
| | | cfg.process(data, templateName); |
| | | } catch (Exception e) { |
| | | e.printStackTrace(); |
| | | log.error("发布栏目错误", e); |
| | | } |
| | | } |
| | | |
| | | @Override |
| | | public void indexProcess(@NotNull Map<String, Object> data, String templateName) { |
| | | data.put("templateType", "index"); |
| | | if (StrUtil.isEmpty(templateName)) { |
| | | templateName = "index.html"; |
| | | } |
| | | |
| | | cfg.process(data, templateName); |
| | | try { |
| | | cfg.process(data, templateName); |
| | | } catch (Exception e) { |
| | | e.printStackTrace(); |
| | | log.error("发布首页错误", e); |
| | | } |
| | | } |
| | | } |