public class TemplateSetSlice extends TemplateSet
It maps the concept of fetching a template from within a folder of templates
to fetching a subtemplate from within a file of subtemplates.
Copyright: Copyright (c) 2003
Company: X5 Software
Updates: www.dagblastit.com
BLOCKEND_LONGHAND, BLOCKEND_SHORTHAND, DEFAULT_TAG_END, DEFAULT_TAG_START, INCLUDE_SHORTHAND, PROTOCOL_SHORTHAND| Constructor and Description |
|---|
TemplateSetSlice(TemplateSet parent,
java.lang.String templateContext) |
TemplateSetSlice(TemplateSet parent,
java.lang.String templateContext,
java.lang.String ext) |
| Modifier and Type | Method and Description |
|---|---|
Snippet |
getSnippet(java.lang.String templateName)
Retrieve as String the template specified by name.
|
Chunk |
makeChunk()
Creates a Chunk with no starter template and sets its tag boundary
markers to match the other templates in this set.
|
Chunk |
makeChunk(java.lang.String templateName)
Creates a Chunk with a starting template.
|
addProtocol, clearCache, convertTags, convertTags, convertToMyTags, fetch, getDefaultExtension, getFilters, getFromCache, getProtocol, getResourcePath, getSnippet, getSubset, getTemplatePath, makeChunk, provides, removeBlockTagIndents, setDirtyInterval, setEncoding, setHardFail, setJarContext, setJarContext, setLayerName, signalFailureWithNullpublic TemplateSetSlice(TemplateSet parent, java.lang.String templateContext)
public TemplateSetSlice(TemplateSet parent, java.lang.String templateContext, java.lang.String ext)
public Snippet getSnippet(java.lang.String templateName)
TemplateSetFor example: String myTemplate = templateSet.get("outer_file.inner_template");
will look for {#inner_template}bla bla bla{#} inside the file "outer_file.html" or "outer_file.xml" ie whatever your TemplateSet extension is.
getSnippet in interface ContentSourcegetSnippet in class TemplateSettemplateName - the location of the template definition.public Chunk makeChunk()
TemplateSetmakeChunk in interface ChunkFactorymakeChunk in class TemplateSetpublic Chunk makeChunk(java.lang.String templateName)
TemplateSetmakeChunk in interface ChunkFactorymakeChunk in class TemplateSettemplateName - the location of the template definition.Copyright © 2019. All Rights Reserved.