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 newTemplate
instance from the given template text.- Parameters:
text
- the template text- Returns:
- an instance of
Template
-
from
Create a newTemplate
instance from the given template file.- Parameters:
file
- the template file- Returns:
- an instance of
Template
- Throws:
IOException
- if file read throwsIOException
-
from
Create a newTemplate
instance from the given reader.- Parameters:
reader
- theReader
to read the template- Returns:
- an instance of
Template
- Throws:
IOException
- if reader throwsIOException
-