Package de.neuland.jade4j
Class Jade4J
java.lang.Object
de.neuland.jade4j.Jade4J
-
Nested Class Summary
Nested Classes -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprivate static JadeTemplatecreateTemplate(String filename, String basePath, TemplateLoader loader, ExpressionHandler expressionHandler) private static JadeTemplategetTemplate(Reader reader, String name) private static JadeTemplategetTemplate(Reader reader, String name, String extension) static JadeTemplategetTemplate(String filename) static JadeTemplategetTemplate(String filename, String extension) static Stringrender(JadeTemplate template, Map<String, Object> model) static Stringrender(JadeTemplate template, Map<String, Object> model, boolean pretty) static voidstatic voidstatic Stringstatic Stringstatic Stringstatic Stringstatic voidstatic voidstatic Stringstatic Stringprivate static StringtemplateToString(JadeTemplate template, Map<String, Object> model)
-
Constructor Details
-
Jade4J
public Jade4J()
-
-
Method Details
-
render
public static String render(String filename, Map<String, Object> model) throws IOException, JadeCompilerException- Throws:
IOExceptionJadeCompilerException
-
render
public static String render(String filename, Map<String, Object> model, boolean pretty) throws IOException, JadeCompilerException- Throws:
IOExceptionJadeCompilerException
-
render
public static void render(String filename, Map<String, Object> model, Writer writer) throws IOException, JadeCompilerException- Throws:
IOExceptionJadeCompilerException
-
render
public static void render(String filename, Map<String, Object> model, Writer writer, boolean pretty) throws IOException, JadeCompilerException- Throws:
IOExceptionJadeCompilerException
-
render
public static String render(JadeTemplate template, Map<String, Object> model) throws JadeCompilerException- Throws:
JadeCompilerException
-
render
public static String render(JadeTemplate template, Map<String, Object> model, boolean pretty) throws JadeCompilerException- Throws:
JadeCompilerException
-
render
public static void render(JadeTemplate template, Map<String, Object> model, Writer writer) throws JadeCompilerException- Throws:
JadeCompilerException
-
render
public static void render(JadeTemplate template, Map<String, Object> model, Writer writer, boolean pretty) throws JadeCompilerException- Throws:
JadeCompilerException
-
render
public static String render(URL url, Map<String, Object> model) throws IOException, JadeCompilerException- Throws:
IOExceptionJadeCompilerException
-
render
public static String render(URL url, Map<String, Object> model, boolean pretty) throws IOException, JadeCompilerException- Throws:
IOExceptionJadeCompilerException
-
render
public static String render(Reader reader, String filename, Map<String, Object> model) throws IOException, JadeCompilerException- Throws:
IOExceptionJadeCompilerException
-
render
public static String render(Reader reader, String filename, Map<String, Object> model, boolean pretty) throws IOException, JadeCompilerException- Throws:
IOExceptionJadeCompilerException
-
getTemplate
- Throws:
IOException
-
getTemplate
- Throws:
IOException
-
getTemplate
- Throws:
IOException
-
getTemplate
private static JadeTemplate getTemplate(Reader reader, String name, String extension) throws IOException - Throws:
IOException
-
createTemplate
private static JadeTemplate createTemplate(String filename, String basePath, TemplateLoader loader, ExpressionHandler expressionHandler) throws IOException - Throws:
IOException
-
templateToString
private static String templateToString(JadeTemplate template, Map<String, Object> model) throws JadeCompilerException- Throws:
JadeCompilerException
-