Package io.github.erdos.stencil
Interface TemplateFactory
-
- All Known Implementing Classes:
CachingTemplateFactory
,DirWatcherTemplateFactory
,NativeTemplateFactory
public interface TemplateFactory
-
-
Method Summary
All Methods Instance Methods Abstract Methods Default Methods Modifier and Type Method Description default PreparedTemplate
prepareTemplateFile(java.io.File inputTemplateFile)
PreparedTemplate
prepareTemplateFile(java.io.File inputTemplateFile, PrepareOptions options)
Preprocesses a raw template file.
-
-
-
Method Detail
-
prepareTemplateFile
PreparedTemplate prepareTemplateFile(java.io.File inputTemplateFile, PrepareOptions options) throws java.io.IOException
Preprocesses a raw template file.- Parameters:
inputTemplateFile
- raw template file of known type.options
- template preparation options.- Returns:
- preprocessed template file
- Throws:
java.io.IOException
- on file system errorjava.lang.IllegalArgumentException
- when argument is null, unknown type or does not existjava.io.FileNotFoundException
- when file does not exist
-
prepareTemplateFile
default PreparedTemplate prepareTemplateFile(java.io.File inputTemplateFile) throws java.io.IOException
- Throws:
java.io.IOException
-
-