summaryrefslogtreecommitdiff
path: root/src/web/lib/html.php
diff options
context:
space:
mode:
authorFreya Murphy <freya@freyacat.org>2026-02-26 10:24:43 -0500
committerFreya Murphy <freya@freyacat.org>2026-02-26 11:22:13 -0500
commite6fd79bad907c18e35fb2f99842b0ab62ed67114 (patch)
tree0e178e58cd758203aedd9bc9915373ecec711e90 /src/web/lib/html.php
parentupdate license (diff)
downloadwebsite-e6fd79bad907c18e35fb2f99842b0ab62ed67114.tar.gz
website-e6fd79bad907c18e35fb2f99842b0ab62ed67114.tar.bz2
website-e6fd79bad907c18e35fb2f99842b0ab62ed67114.zip
start caching html pages, lower request tree chaining
Diffstat (limited to '')
-rw-r--r--src/web/lib/html.php8
1 files changed, 8 insertions, 0 deletions
diff --git a/src/web/lib/html.php b/src/web/lib/html.php
new file mode 100644
index 0000000..9649bf4
--- /dev/null
+++ b/src/web/lib/html.php
@@ -0,0 +1,8 @@
+<?php /* Copyright (c) 2024 Freya Murphy */
+
+
+function embed_css_ext(string $file) {
+ $css = Base::embed_css($file);
+ $web_root = Base::get_url('');
+ return str_replace("WEB_ROOT", $web_root, $css);
+}