Support minimal dependency linux build.
This commit is contained in:
parent
92a35a5bc9
commit
7ce29ce8ae
14 changed files with 421 additions and 176 deletions
|
@ -50,8 +50,7 @@ void WebsiteGenerator::parseTemplateFiles()
|
|||
const auto template_files = Directory::getFilesWithExtension(template_path, ".html");
|
||||
for (const auto& path : template_files)
|
||||
{
|
||||
auto file = TemplateFile(path);
|
||||
mTemplateFiles[path.stem().string()] = file;
|
||||
mTemplateFiles[path.stem().string()] = std::make_unique<TemplateFile>(path);
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
@ -44,6 +44,7 @@ public:
|
|||
{
|
||||
|
||||
}
|
||||
|
||||
private:
|
||||
Path mPath;
|
||||
};
|
||||
|
@ -80,5 +81,5 @@ private:
|
|||
GeneratorConfig mConfig;
|
||||
std::vector<ContentPage> mPages;
|
||||
std::vector<ContentArticle> mArticles;
|
||||
std::unordered_map<std::string, TemplateFile> mTemplateFiles;
|
||||
std::unordered_map<std::string, std::unique_ptr<TemplateFile> > mTemplateFiles;
|
||||
};
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue