Helius
2022-07-08 9b51a62597487073b54aa27cdd059828ebfcb2ac
src/main/java/com/xcong/farmer/cms/core/template/TemplateLoader.java
@@ -22,23 +22,10 @@
    }
    public Template template(File file) {
        Document document = null;
        try {
            document = Jsoup.parse(file, "utf-8");
        } catch (IOException e) {
            e.printStackTrace();
        Template template = new Template(file, this.systemData);
        synchronized (this) {
            template.parser();
        }
        if (document == null) {
            throw new NullPointerException();
        }
        Template template = new Template();
        template.setDocument(document);
        template.setName(file.getName());
        template.systemData(this.systemData);
        template.parser();
        return template;
    }