Package com.axelor.text
Interface Templates
- All Known Implementing Classes:
GroovyTemplates,StringTemplates
public interface Templates
This interface defines API for template engine integration.
-
Method Summary
-
Method Details
-
fromText
Create a newTemplateinstance from the given template text.- Parameters:
text- the template text- Returns:
- an instance of
Template
-
from
Create a newTemplateinstance from the given template file.- Parameters:
file- the template file- Returns:
- an instance of
Template - Throws:
IOException- if file read throwsIOException
-
from
Create a newTemplateinstance from the given reader.- Parameters:
reader- theReaderto read the template- Returns:
- an instance of
Template - Throws:
IOException- if reader throwsIOException
-