Package spark.template.jade
Class JadeTemplateEngine
java.lang.Object
spark.TemplateEngine
spark.template.jade.JadeTemplateEngine
public class JadeTemplateEngine
extends spark.TemplateEngine
Template engine to render HTML from jade templates.
-
Field Summary
Fields -
Constructor Summary
ConstructorsConstructorDescriptionConstruct a jade template engine with 'templates' as root directory.JadeTemplateEngine(de.neuland.jade4j.JadeConfiguration configuration) Construct a jade template engine from a raw JadeConfigurationJadeTemplateEngine(String templateRoot) Construct a jade template engine with specified root. -
Method Summary
Modifier and TypeMethodDescriptionde.neuland.jade4j.JadeConfigurationAccess to the internal JadeConfigurationrender(spark.ModelAndView modelAndView) Methods inherited from class spark.TemplateEngine
modelAndView, render
-
Field Details
-
configuration
private de.neuland.jade4j.JadeConfiguration configuration
-
-
Constructor Details
-
JadeTemplateEngine
public JadeTemplateEngine()Construct a jade template engine with 'templates' as root directory. -
JadeTemplateEngine
Construct a jade template engine with specified root.- Parameters:
templateRoot- the template root directory to use
-
JadeTemplateEngine
public JadeTemplateEngine(de.neuland.jade4j.JadeConfiguration configuration) Construct a jade template engine from a raw JadeConfiguration- Parameters:
configuration- the raw JadeConfiguration to use
-
-
Method Details
-
configuration
public de.neuland.jade4j.JadeConfiguration configuration()Access to the internal JadeConfiguration- Returns:
- The JadeConfiguration used by this engine
-
render
- Specified by:
renderin classspark.TemplateEngine
-