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

com.blade.mvc.ui.template.TemplateEngine Maven / Gradle / Ivy

There is a newer version: 2.0.15.RELEASE
Show newest version
package com.blade.mvc.ui.template;

import com.blade.exception.TemplateException;
import com.blade.mvc.ui.ModelAndView;

import java.io.Writer;

/**
 * TemplateEngine Interface, For view layer to display data
 *
 * @author biezhi
 * @since 1.5
 */
public interface TemplateEngine {

    /**
     * Render a template file to the client
     *
     * @param modelAndView ModelAndView instance, contains view name and data model
     * @param writer       writer instance
     * @throws TemplateException throw TemplateException when rendering a template
     */
    void render(ModelAndView modelAndView, Writer writer) throws TemplateException;

}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy