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

cn.enilu.flash.core.util.VelocityUtil Maven / Gradle / Ivy

package cn.enilu.flash.core.util;

import org.apache.velocity.app.VelocityEngine;
import org.springframework.ui.velocity.VelocityEngineUtils;

import java.util.Map;

public final class VelocityUtil {

	private VelocityUtil() {
	}

	public static String renderTemplate(VelocityEngine engine,
			String templateLocation, Map model) {
		return VelocityEngineUtils.mergeTemplateIntoString(engine,
				templateLocation, "UTF-8", model);
	}

}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy