package com.xcong.farmer.cms.cms.template; import cn.hutool.core.collection.CollUtil; import com.xcong.farmer.cms.cms.node.PartNode; import com.xcong.farmer.cms.cms.tag.TagsEnum; import org.jsoup.nodes.Document; import java.io.File; import java.io.FileOutputStream; import java.io.IOException; import java.util.HashMap; import java.util.List; import java.util.Map; /** * @author wzy * @date 2022-07-01 **/ public class TemplateConfiguration extends Configuration{ private TemplateLoader templateLoader; public TemplateConfiguration(String templatePath, String staticPath, String outputPath) { super(templatePath, staticPath, outputPath); } public void templateLoader(TemplateLoader templateLoader) { this.templateLoader = templateLoader; } public void process() { if (this.templateLoader == null) { throw new RuntimeException("TemplateLoader do not able to be null"); } List