Skip to content

Commit 47a7495

Browse files
committed
re-add old methods to TemplateFactory
1 parent 6154d5a commit 47a7495

File tree

1 file changed

+10
-0
lines changed

1 file changed

+10
-0
lines changed

java-src/io/github/erdos/stencil/TemplateFactory.java

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,16 @@
55

66
public interface TemplateFactory {
77

8+
@Deprecated
9+
default PreparedTemplate prepareTemplateFile(File inputTemplateFile, PrepareOptions options) throws IOException {
10+
return prepareTemplateFile(inputTemplateFile.toPath(), options);
11+
}
12+
13+
@Deprecated
14+
default PreparedTemplate prepareTemplateFile(File inputTemplateFile) throws IOException {
15+
return prepareTemplateFile(inputTemplateFile.toPath());
16+
}
17+
818
/**
919
* Preprocesses a raw template file.
1020
*

0 commit comments

Comments
 (0)