Package com.github.jknack.handlebars.io
Class StringTemplateSource
java.lang.Object
com.github.jknack.handlebars.io.AbstractTemplateSource
com.github.jknack.handlebars.io.StringTemplateSource
- All Implemented Interfaces:
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.
String implementation of
TemplateSource
.- Since:
- 0.11.0
-
Constructor Summary
ConstructorDescriptionStringTemplateSource
(String filename, String content) Deprecated.Creates a newStringTemplateSource
. -
Method Summary
Methods inherited from class com.github.jknack.handlebars.io.AbstractTemplateSource
equals, hashCode, toString
-
Constructor Details
-
StringTemplateSource
Deprecated.Creates a newStringTemplateSource
.- Parameters:
filename
- The template's file name. Required.content
- The template's content. Required.
-
-
Method Details
-
content
Deprecated.Description copied from interface:TemplateSource
The template content.- Parameters:
charset
- Charset to use.- Returns:
- The template content.
-
filename
Deprecated.Description copied from interface:TemplateSource
The file's name.- Returns:
- The file's name.
-
lastModified
public long lastModified()Deprecated.Description copied from interface:TemplateSource
The last modified date.- Returns:
- The last modified date.
-