template: Make template path optional, use embedded resources
Αυτή η υποβολή περιλαμβάνεται σε:
@@ -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
|
||||
|
||||
Αναφορά σε νέο ζήτημα
Block a user