| | |
| | | private String path = ""; |
| | | |
| | | private Document document; |
| | | private Map<String, Map<String, Object>> params = new HashMap<>(); |
| | | private Map<String, Object> system; |
| | | private List<PartNode> partNodes = new ArrayList<>(); |
| | | |
| | | |
| | | // 页面中包含的标签 |
| | | public static Set<String> TAGS; |
| | | public volatile static boolean HAS_PAGING = false; |
| | | |
| | | public Template() { |
| | | TAGS = new HashSet<>(); |
| | | } |
| | | |
| | | public Template(File file, Map<String, Object> system) { |
| | | TAGS = new HashSet<>(); |
| | | |
| | | Document document = null; |
| | | try { |
| | | document = Jsoup.parse(file, "utf-8"); |
| | |
| | | |
| | | public List<PartNode> getPartNodes() { |
| | | return partNodes; |
| | | } |
| | | |
| | | public Map<String, Map<String, Object>> getParams() { |
| | | return params; |
| | | } |
| | | |
| | | public void putParams(String key, Map<String, Object> value) { |
| | | this.params.put(key, value); |
| | | } |
| | | |
| | | public void systemData(Map<String, Object> data) { |