Package com.github.jknack.handlebars.io
Interface TemplateSource
-
- All Known Implementing Classes:
AbstractTemplateSource
,ForwardingTemplateSource
,ReloadableTemplateSource
,StringTemplateSource
,URLTemplateSource
public interface TemplateSource
The template source. Implementation ofTemplateSource
must implement#equals(Object)
and#hashCode()
methods. This two methods are the core of the cache system.- Since:
- 0.11.0
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description String
content()
The template content.String
filename()
The file's name.long
lastModified()
The last modified date.
-
-
-
Method Detail
-
content
String content() throws IOException
The template content.- 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.
-
-