All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.hibegin.template.FreemarkerTemplateRender Maven / Gradle / Ivy

Go to download

Simple, flexible, less dependent, more extended. Less memory footprint, can quickly build Web project. Can quickly run embedded, Android devices

There is a newer version: 0.3.162
Show newest version
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