template: Make template path optional, use embedded resources

Αυτή η υποβολή περιλαμβάνεται σε:
2025-12-22 10:07:55 +01:00
γονέας 03b2f44744
υποβολή ab0a6f1e27
2 αρχεία άλλαξαν με 17 προσθήκες και 5 διαγραφές

@@ -26,7 +26,7 @@ class Template
TemplatePage createPage(std::string_view name);
public:
Template(std::string templateprefix, std::string templatepath, ConfigUrls &configUrls,
Template(std::string templateprefix, ConfigUrls &configUrls,
ConfigVariableResolver &configVarsResolver, MapCache<TemplatePage> &pageCache);
TemplatePage getPage(const std::string &pagename);
@@ -37,6 +37,8 @@ class Template
std::string renderSearch(const std::vector<std::string> &results) const;
std::string renderSearch(const std::vector<SearchResult> &results) const;
std::string renderRevisionList(const std::vector<Revision> &revisions, bool withpage = false) const;
void setPath(std::string path);
};
#endif // TEMPLATE_H