Skip to content

Latest commit

 

History

History
16 lines (13 loc) · 444 Bytes

File metadata and controls

16 lines (13 loc) · 444 Bytes

  使用 Freemarker 作为渲染引擎。

   Hasor 框架内置了 Freemarker 渲染引擎插件,您只需要引用 freemarker 的 jar 包,然后配置一下渲染引擎即可。

<dependency>
    <groupId>org.freemarker</groupId>
    <artifactId>freemarker</artifactId>
    <version>2.3.23</version>
</dependency>

  配置渲染器。

apiBinder.suffix("htm").bind(FreemarkerRender.class);