-------------------------------------------------------------------------
| 63 | |
| 64 | //------------------------------------------------------------------------- |
| 65 | std::string GenerateTemplate( |
| 66 | const ctemplate::TemplateDictionary& templateDictionary, |
| 67 | const fs::path& templatePath) |
| 68 | { |
| 69 | std::string output; |
| 70 | |
| 71 | if (!ctemplate::ExpandTemplate(templatePath.string(), ctemplate::DO_NOT_STRIP, &templateDictionary, &output)) |
| 72 | THROW(L"Cannot generate output for " + templatePath.wstring()); |
| 73 | |
| 74 | return output; |
| 75 | } |
| 76 | |
| 77 | //------------------------------------------------------------------------- |
| 78 | void WriteTemplate( |