Interface TemplateSource

All Known Implementing Classes:
AbstractTemplateSource, ForwardingTemplateSource, ReloadableTemplateSource, StringTemplateSource, URLTemplateSource

@Deprecated(since="2024-07-10") public interface TemplateSource
Deprecated.
com.github.jknack.handlebars.io package is deprecated and marked for removal in subsequent releases which will involve removal of the handlebars dependency in AEM.
The template source. Implementation of TemplateSource must implement equals(Object) and hashCode() methods. This two methods are the core of the cache system.
Since:
0.11.0
  • Method Summary

    Modifier and Type
    Method
    Description
    content(Charset charset)
    Deprecated.
    The template content.
    Deprecated.
    The file's name.
    long
    Deprecated.
    The last modified date.
  • Method Details

    • content

      String content(Charset charset) throws IOException
      Deprecated.
      The template content.
      Parameters:
      charset - Charset to use.
      Returns:
      The template content.
      Throws:
      IOException - If the template can't read.
    • filename

      String filename()
      Deprecated.
      The file's name.
      Returns:
      The file's name.
    • lastModified

      long lastModified()
      Deprecated.
      The last modified date.
      Returns:
      The last modified date.