Class JadeTemplateEngine


  • public class JadeTemplateEngine
    extends spark.TemplateEngine
    Template engine to render HTML from jade templates.
    • Field Summary

      Fields 
      Modifier and Type Field Description
      private de.neuland.jade4j.JadeConfiguration configuration  
    • Constructor Summary

      Constructors 
      Constructor Description
      JadeTemplateEngine()
      Construct a jade template engine with 'templates' as root directory.
      JadeTemplateEngine​(de.neuland.jade4j.JadeConfiguration configuration)
      Construct a jade template engine from a raw JadeConfiguration
      JadeTemplateEngine​(java.lang.String templateRoot)
      Construct a jade template engine with specified root.
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      de.neuland.jade4j.JadeConfiguration configuration()
      Access to the internal JadeConfiguration
      java.lang.String render​(spark.ModelAndView modelAndView)
      • Methods inherited from class spark.TemplateEngine

        modelAndView, render
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Field Detail

      • configuration

        private de.neuland.jade4j.JadeConfiguration configuration
    • Constructor Detail

      • JadeTemplateEngine

        public JadeTemplateEngine()
        Construct a jade template engine with 'templates' as root directory.
      • JadeTemplateEngine

        public JadeTemplateEngine​(java.lang.String templateRoot)
        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 Detail

      • configuration

        public de.neuland.jade4j.JadeConfiguration configuration()
        Access to the internal JadeConfiguration
        Returns:
        The JadeConfiguration used by this engine
      • render

        public java.lang.String render​(spark.ModelAndView modelAndView)
        Specified by:
        render in class spark.TemplateEngine