diff --git a/lib/Template.php b/lib/Template.php index 2eba02c..f8943c4 100644 --- a/lib/Template.php +++ b/lib/Template.php @@ -225,4 +225,11 @@ class Template { file_put_contents(PUBLIC_DIR . "/" . $filename, $contents); } + public function saveText(string $filename, string $contents) + { + Logger::log("Saving text to " . $filename, Logger::IOWRITE, "Template"); + + file_put_contents(PUBLIC_DIR . "/" . $filename, $contents); + } + } \ No newline at end of file