Example #1
0
 @Override
 public String getStaticRoot() {
   if (staticRoot == null) {
     staticRoot = Helpers.getFile(AdminServer.getInstance().getConfig().getStaticRoot());
   }
   return staticRoot;
 }
Example #2
0
 @Override
 public TemplateEngine getEngine() {
   if (engine == null) {
     engine = new TemplateEngine(AdminServer.getInstance().getConfig().getTemplateRoot());
   }
   return engine;
 }