aboutsummaryrefslogtreecommitdiff
path: root/page.h
diff options
context:
space:
mode:
authorXavier Del Campo Romero <xavi.dcr@tutanota.com>2023-07-11 01:20:39 +0200
committerXavier Del Campo Romero <xavi.dcr@tutanota.com>2023-07-11 01:49:12 +0200
commite79e955d93e24a192c9bf94181294d0797e9fded (patch)
tree5c3697710b6aa004bb7e3747f4c8ba98b37d662d /page.h
parent4236c7fc3a7c7ef9f79b045cfd99c6575b16f7b1 (diff)
Allow admins to define their own stylesheet
slcl used to provide a hardcoded stylesheet. However, it would be desirable for some admins to provide a custom stylesheet without having to rebuild the application. Now, slcl creates a default stylesheet, namely style.css, into the target directory, that can be later modified by admins. While this might contradict the suckless philosophy a bit, hopefully some admins might find this new feature useful.
Diffstat (limited to 'page.h')
-rw-r--r--page.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/page.h b/page.h
index 748380d..749ebd0 100644
--- a/page.h
+++ b/page.h
@@ -36,7 +36,7 @@ struct page_rm
};
int page_login(struct http_response *r);
-int page_style(struct http_response *r);
+int page_style(struct http_response *r, const char *path);
int page_failed_login(struct http_response *r);
int page_forbidden(struct http_response *r);
int page_bad_request(struct http_response *r);