|
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
Object ee.mare.indrek.jtlt.macros.MacroAdapter ee.mare.indrek.jtlt.macros.IncludeMacro
A macro (INCLUDE) for including files into a template. You should be careful with using this macro as splitting a template into multiple files can create a nightmare of manageability. Still sometimes it can be put into good use. The included file is also parsed for all macros and also sub-blocks.
Constructor Summary | |
IncludeMacro(String search_path)
A search path where from to search for files, different paths separated by either colon or semicolon. |
|
IncludeMacro(String search_path,
String name)
|
Method Summary | |
boolean |
isParsetime()
Returns whether a macro is parsetime or not. |
boolean |
isRecursive()
Whether to recursively parse the output of this the macro. |
String |
process(TemplateParams ctx,
String name,
String args)
This method is called with given block context whenever a macro with registered name is found inside the tempalate. |
Methods inherited from class ee.mare.indrek.jtlt.macros.MacroAdapter |
getName |
Methods inherited from class Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public IncludeMacro(String search_path)
public IncludeMacro(String search_path, String name)
Method Detail |
public boolean isParsetime()
TemplateMacro
isParsetime
in interface TemplateMacro
isParsetime
in class MacroAdapter
public boolean isRecursive()
TemplateMacro
isRecursive
in interface TemplateMacro
isRecursive
in class MacroAdapter
public String process(TemplateParams ctx, String name, String args)
TemplateMacro
process
in interface TemplateMacro
process
in class MacroAdapter
|
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |