com.hibegin.template.FreemarkerTemplateRender Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of simplewebserver Show documentation
Show all versions of simplewebserver Show documentation
Simple, flexible, less dependent, more extended. Less memory footprint, can quickly build Web project.
Can quickly run embedded, Android devices
package com.hibegin.template;
import com.hibegin.http.server.api.HttpRequest;
import com.hibegin.http.server.util.FreeMarkerUtil;
import java.io.InputStream;
public class FreemarkerTemplateRender implements TemplateRender {
private final HttpRequest request;
public FreemarkerTemplateRender(HttpRequest request) {
this.request = request;
}
@Override
public String render(InputStream in) {
return "";
}
@Override
public String render(String templateStr) {
return "";
}
@Override
public String renderByTemplateName(String templateName) throws Exception {
return FreeMarkerUtil.renderToFM(templateName, request);
}
}
© 2015 - 2024 Weber Informatics LLC | Privacy Policy