From 72b5f69559975356211daf8053d37ad658ab9553 Mon Sep 17 00:00:00 2001 From: Daniel Weipert Date: Mon, 4 Dec 2023 13:51:44 +0100 Subject: add CSS env variable --- Justfile | 8 +++++++- index.php | 3 +++ test/index.gmi | 3 +++ 3 files changed, 13 insertions(+), 1 deletion(-) create mode 100644 test/index.gmi diff --git a/Justfile b/Justfile index 2c75d5f..a06d665 100644 --- a/Justfile +++ b/Justfile @@ -1,5 +1,11 @@ +set export + +CSS := "body { + color: green; +}" + test: - GEMINI_HOST=localhost php -S localhost:8080 -t test test/index.php + GEMINI_HOST=localhost CSS=$CSS php -S localhost:8080 -t test test/index.php server: diff --git a/index.php b/index.php index 2f2f677..1c7f55c 100644 --- a/index.php +++ b/index.php @@ -119,6 +119,9 @@ $content = ob_get_clean(); <?php echo $title; ?> + + + diff --git a/test/index.gmi b/test/index.gmi new file mode 100644 index 0000000..efe70a6 --- /dev/null +++ b/test/index.gmi @@ -0,0 +1,3 @@ +# Test + +Test -- cgit v1.2.3