made formatting files work

This commit is contained in:
2026-01-12 12:52:19 +01:00
parent 1a58577b3e
commit 19d86e8dc7
3 changed files with 103 additions and 62 deletions

View File

@@ -14,6 +14,8 @@ std::string format_file(const std::string &TEMPLATE_FILE,
// @param TEMPLATE_FILE File that you want to format in string.
// @param TEMPLATE Full name of the if statement. For example `{{if title}}`
// @return Formatted file in std::string
std::string format_file_condtionally(const std::string &TEMPLATE_FILE,
const std::string &TEMPLATE,
const std::string &INPUT);
std::string format_file_conditionally(const std::string &TEMPLATE_FILE,
const std::string &START_TAG,
const std::string &END_TAG,
const std::string &TEMPLATE,
const std::string &INPUT);