程序包 cool.scx.core

类 ScxTemplate

java.lang.Object
cool.scx.core.ScxTemplate

public final class ScxTemplate extends Object
用于渲染 freemarker
版本:
0.3.6
作者:
scx567888
  • 构造器详细资料

    • ScxTemplate

      public ScxTemplate(ScxOptions scxOptions)

      Constructor for ScxTemplate.

      参数:
      scxOptions - a
  • 方法详细资料

    • getTemplateByPath

      public freemarker.template.Template getTemplateByPath(String pagePath) throws IOException

      getTemplateByPath.

      参数:
      pagePath - a String object.
      返回:
      a Template object.
      抛出:
      IOException - if any.
    • addDirective

      public void addDirective(Class<? extends BaseTemplateDirective> clazz)
      添加一个模板指令
      参数:
      clazz - a Class object