Package com.github.jknack.handlebars.io
Class AbstractTemplateLoader
java.lang.Object
com.github.jknack.handlebars.io.AbstractTemplateLoader
- All Implemented Interfaces:
TemplateLoader
- Direct Known Subclasses:
URLTemplateLoader
@Deprecated(since="2024-07-10")
public abstract class AbstractTemplateLoader
extends Object
implements TemplateLoader
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.
Strategy interface for loading resources from class path, file system, etc.
Templates prefix and suffix
A TemplateLoader provides two important properties:
- prefix: useful for setting a default prefix where templates are stored.
- suffix: useful for setting a default suffix or file extension for your templates. Default is:
'.hbs'
- Since:
- 1.0.0
-
Field Summary
Fields inherited from interface com.github.jknack.handlebars.io.TemplateLoader
DEFAULT_PREFIX, DEFAULT_SUFFIX -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionDeprecated.Deprecated.Deprecated.Deprecated.Resolve the uri to an absolute location.voidsetCharset(Charset charset) Deprecated.Set the default charset.voidDeprecated.Set the prefix that gets prepended to view names when building a URI.voidDeprecated.Set the suffix that gets appended to view names when building a URI.Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface com.github.jknack.handlebars.io.TemplateLoader
sourceAt
-
Constructor Details
-
AbstractTemplateLoader
public AbstractTemplateLoader()Deprecated.
-
-
Method Details
-
resolve
Deprecated.Resolve the uri to an absolute location.- Specified by:
resolvein interfaceTemplateLoader- Parameters:
uri- The candidate uri.- Returns:
- Resolve the uri to an absolute location.
-
setPrefix
Deprecated.Set the prefix that gets prepended to view names when building a URI.- Specified by:
setPrefixin interfaceTemplateLoader- Parameters:
prefix- The prefix that gets prepended to view names when building a URI.
-
setSuffix
Deprecated.Set the suffix that gets appended to view names when building a URI.- Specified by:
setSuffixin interfaceTemplateLoader- Parameters:
suffix- The suffix that gets appended to view names when building a URI.
-
setCharset
Deprecated.Description copied from interface:TemplateLoaderSet the default charset.- Specified by:
setCharsetin interfaceTemplateLoader- Parameters:
charset- Charset.
-
getCharset
Deprecated.- Specified by:
getCharsetin interfaceTemplateLoader- Returns:
- Charset.
-
getPrefix
Deprecated.- Specified by:
getPrefixin interfaceTemplateLoader- Returns:
- The prefix that gets prepended to view names when building a URI.
-
getSuffix
Deprecated.- Specified by:
getSuffixin interfaceTemplateLoader- Returns:
- The suffix that gets appended to view names when building a URI.
-