mirror of
https://github.com/szymon-jozef/static-site-generator.git
synced 2026-09-07 12:10:42 +02:00
added format_file() function
This commit is contained in:
@@ -1,7 +1,9 @@
|
||||
#include <string>
|
||||
|
||||
// Change template from file into html
|
||||
// Return html in string
|
||||
std::string inject_html_into_template(const std::string &FILE_NAME,
|
||||
const std::string &TEMPLATE,
|
||||
const std::string &HTML);
|
||||
// @brief Format file.
|
||||
// @param TEMPLATE_FILE File that you want to format in string.
|
||||
// @param TEMPLATE Template that you want to replace. For example `{{title}}`
|
||||
// @param INPUT Text that you want to replace TEMPLATE with.
|
||||
// @return Formatted file in std::string
|
||||
std::string format_file(const std::string &TEMPLATE_FILE,
|
||||
const std::string &TEMPLATE, const std::string &INPUT);
|
||||
|
||||
Reference in New Issue
Block a user