Do bulk replace of stl types.
This commit is contained in:
parent
521486be62
commit
c25a56ee19
531 changed files with 2274 additions and 2181 deletions
|
@ -3,9 +3,9 @@
|
|||
#include "File.h"
|
||||
#include "TemplateFile.h"
|
||||
|
||||
#include <vector>
|
||||
#include <string>
|
||||
#include <memory>
|
||||
#include "Vector.h"
|
||||
#include "String.h"
|
||||
#include "Memory.h"
|
||||
#include <unordered_map>
|
||||
|
||||
class TemplateSubstitutionContext;
|
||||
|
@ -15,16 +15,16 @@ class TemplatingEngine
|
|||
public:
|
||||
TemplatingEngine(const Path& workingDirectory);
|
||||
|
||||
std::string renderTemplate(const std::string& name, TemplateSubstitutionContext* substitutionContext);
|
||||
String renderTemplate(const String& name, TemplateSubstitutionContext* substitutionContext);
|
||||
|
||||
private:
|
||||
TemplateFile* getTemplateFile(const std::string& name);
|
||||
TemplateFile* getTemplateFile(const String& name);
|
||||
TemplateFile* getTemplateFile(const Path& path);
|
||||
|
||||
void loadTemplateFiles();
|
||||
void processTemplate(TemplateFile* file, TemplateNode* parent = nullptr);
|
||||
|
||||
std::unordered_map<std::string, std::unique_ptr<TemplateFile> > mTemplateFiles;
|
||||
std::unordered_map<String, Ptr<TemplateFile> > mTemplateFiles;
|
||||
Path mWorkingDirectory;
|
||||
std::string mTemplateExtension{ ".html" };
|
||||
String mTemplateExtension{ ".html" };
|
||||
};
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue