Package dev.aherscu.qa.jgiven.reporter
Class TemplateUtils.Loader
- java.lang.Object
-
- dev.aherscu.qa.jgiven.reporter.TemplateUtils.Loader
-
- Enclosing class:
- TemplateUtils
public static class TemplateUtils.Loader extends Object
Loads Mustache Templates.- Author:
- aherscu
-
-
Constructor Summary
Constructors Constructor Description Loader(com.samskivert.mustache.Mustache.Compiler compiler)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description com.samskivert.mustache.Template
loadFrom(File file)
Loads a template from a file.com.samskivert.mustache.Template
loadFrom(Reader reader)
Loads a template from a stream reader.com.samskivert.mustache.Template
loadFrom(String name)
Loads a template from a resource.
-
-
-
Method Detail
-
loadFrom
public com.samskivert.mustache.Template loadFrom(File file) throws IOException
Loads a template from a file.- Parameters:
file
- the file to load from- Returns:
- the template
- Throws:
IOException
- if no such file
-
loadFrom
public com.samskivert.mustache.Template loadFrom(Reader reader)
Loads a template from a stream reader.- Parameters:
reader
- the stream reader- Returns:
- the template
-
loadFrom
public com.samskivert.mustache.Template loadFrom(String name)
Loads a template from a resource.- Parameters:
name
- the name of the resource- Returns:
- the template
-
-