small changes
This commit is contained in:
parent
4d513b407a
commit
2276a55722
1 changed files with 2 additions and 0 deletions
|
|
@ -103,11 +103,13 @@ public class Templator {
|
|||
public Templator(File tmpl) throws IOException {
|
||||
if(tmpl == null)
|
||||
throw new IOException("File can not be null!");
|
||||
|
||||
this.data = new HashMap<>();
|
||||
this.file = tmpl;
|
||||
parseTemplate(FileUtil.getContent(file));
|
||||
this.lastModified = file.lastModified();
|
||||
}
|
||||
|
||||
public Templator(String tmpl){
|
||||
this.data = new HashMap<>();
|
||||
parseTemplate(tmpl);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue