|
terp - the Codemesh Modular Template Interpreter v1.3.309 |
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
public interface TemplateSource
An interface implemented by objects that can be used as a source of template lookups by name. For example: you have a template that references another template. You could do it by its relative location but then you have hardcoded a dependency between the two. You could specify the template by an identifier that is used to look up the template somewhere else. That's what the TemplateSource interface provides.
| Method Summary | |
|---|---|
java.lang.Object |
getTemplate(java.lang.String identifier,
java.lang.Object elem,
TerpContext ctx)
Returns the template specified by the given identifier. |
java.lang.Object |
getTemplate(java.lang.String identifier,
TerpContext ctx)
Returns the template specified by the given identifier. |
| Method Detail |
|---|
java.lang.Object getTemplate(java.lang.String identifier,
TerpContext ctx)
identifier - the template's unique identifier.ctx - the context in which the lookup occurs.
java.lang.Object getTemplate(java.lang.String identifier,
java.lang.Object elem,
TerpContext ctx)
identifier - the template's unique identifier.elem - the element for which we're interested in a template.ctx - the context in which the lookup occurs.
|
terp - the Codemesh Modular Template Interpreter v1.3.309 |
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||