ee.mare.indrek.jtlt.macros
Class IncludePlainMacro

Object
  extended byee.mare.indrek.jtlt.macros.MacroAdapter
      extended byee.mare.indrek.jtlt.macros.IncludeMacro
          extended byee.mare.indrek.jtlt.macros.IncludePlainMacro
All Implemented Interfaces:
TemplateMacro

public class IncludePlainMacro
extends IncludeMacro

A macro (INCLUDEPLAIN) 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 considered as a simple string and is not recursively parsed.


Constructor Summary
IncludePlainMacro(String search_path)
          A search path where from to search for files, different paths separated by either colon or semicolon.
IncludePlainMacro(String search_path, String name)
           
 
Method Summary
 boolean isRecursive()
          Whether to recursively parse the output of this the macro.
 
Methods inherited from class ee.mare.indrek.jtlt.macros.IncludeMacro
isParsetime, process
 
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

IncludePlainMacro

public IncludePlainMacro(String search_path)
A search path where from to search for files, different paths separated by either colon or semicolon.


IncludePlainMacro

public IncludePlainMacro(String search_path,
                         String name)
Method Detail

isRecursive

public boolean isRecursive()
Description copied from interface: TemplateMacro
Whether to recursively parse the output of this the macro. If the macro is used at parsetime the result can contain additional sub blocks.

Specified by:
isRecursive in interface TemplateMacro
Overrides:
isRecursive in class IncludeMacro