feat: Add plain text renderer

This commit is contained in:
overflowerror 2023-11-24 13:03:14 +01:00
parent 9081b05a0e
commit b2cbb63f47
2 changed files with 7 additions and 0 deletions

6
renderer/plain.php Normal file
View file

@ -0,0 +1,6 @@
<?php
return function ($data) {
header("Content-Type: text/plain");
echo $data;
}

View file

@ -3,4 +3,5 @@
return [
"JSON" => require(__DIR__ . "/JSON.php"),
"DEBUG" => require(__DIR__ . "/debug.php"),
"PLAIN" => require(__DIR__ . "/plain.php"),
];