Class TemplateEngine


  • public final class TemplateEngine
    extends Object
    • Constructor Detail

      • TemplateEngine

        public TemplateEngine​(CodeResolver codeResolver)
      • TemplateEngine

        public TemplateEngine​(CodeResolver codeResolver,
                              Path classDirectory)
    • Method Detail

      • invalidate

        public List<String> invalidate​(String name)
        Notify the template engine, that the given code has changed and needs to be invalidated.
        Parameters:
        name - Template, Tag or Layout name
        Returns:
        List of templates that have been invalidated
      • prepareForRendering

        public void prepareForRendering​(String name)
        Prepares the template with the given name for rendering
        Parameters:
        name - template name
      • cleanAll

        public void cleanAll()
      • precompileAll

        public void precompileAll()
      • precompileAll

        public void precompileAll​(List<String> compilePath)
      • setNullSafeTemplateCode

        public void setNullSafeTemplateCode​(boolean value)