Package org.keycloak.utils
Class FreemarkerUtils
java.lang.Object
org.keycloak.utils.FreemarkerUtils
- Author:
- Marek Posolda
-
Constructor Summary
-
Method Summary
-
Constructor Details
-
FreemarkerUtils
public FreemarkerUtils()
-
-
Method Details
-
loadTemplateFromClasspath
public static String loadTemplateFromClasspath(Map<String, Object> contextMap, String templateFile, Class<?> clazz) throws freemarker.template.TemplateException, IOExceptionLoad the template from classpath- Parameters:
contextMap
- map with the attributes passed to freemarkertemplateFile
- Name of the file, which is supposed to be available on classpathclazz
- Class, which should be in same package as the template- Returns:
- template from classpath
- Throws:
freemarker.template.TemplateException
IOException
-