Package com.github.jknack.handlebars.io
Interface TemplateSource
- All Known Implementing Classes:
AbstractTemplateSource,ForwardingTemplateSource,ReloadableTemplateSource,StringTemplateSource,URLTemplateSource
public interface TemplateSource
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
-
Method Details
-
content
The template content.- Parameters:
charset- Charset to use.- Returns:
- The template content.
- Throws:
IOException- If the template can't read.
-
filename
String filename()The file's name.- Returns:
- The file's name.
-
lastModified
long lastModified()The last modified date.- Returns:
- The last modified date.
-