Class CachingTemplateEngine<T>

java.lang.Object
io.vertx.ext.web.common.template.CachingTemplateEngine<T>
All Implemented Interfaces:
TemplateEngine

public abstract class CachingTemplateEngine<T> extends Object implements TemplateEngine
Author:
Tim Fox
  • Field Details

    • extension

      protected String extension
  • Constructor Details

    • CachingTemplateEngine

      protected CachingTemplateEngine(Vertx vertx, String ext)
  • Method Details

    • getTemplate

      public CachedTemplate<T> getTemplate(String filename)
    • putTemplate

      public CachedTemplate<T> putTemplate(String filename, CachedTemplate<T> cachedTemplate)
    • adjustLocation

      protected String adjustLocation(String location)
    • clearCache

      public void clearCache()
      Description copied from interface: TemplateEngine
      Clears any internal caches used by this engine. For most engines this means clearing the vert.x cache, implementations that do not use vert.x as a cache should clear their own cache.
      Specified by:
      clearCache in interface TemplateEngine