about summary refs log tree commit diff
path: root/templates/src
diff options
context:
space:
mode:
Diffstat (limited to 'templates/src')
-rw-r--r--templates/src/admin.rs5
-rw-r--r--templates/src/lib.rs2
2 files changed, 7 insertions, 0 deletions
diff --git a/templates/src/admin.rs b/templates/src/admin.rs
new file mode 100644
index 0000000..2837b34
--- /dev/null
+++ b/templates/src/admin.rs
@@ -0,0 +1,5 @@
+markup::define! {
+    AdminHome {
+        p { "This is an example admin homepage." }
+    }
+}
diff --git a/templates/src/lib.rs b/templates/src/lib.rs
index 8d5d5fa..dd263e9 100644
--- a/templates/src/lib.rs
+++ b/templates/src/lib.rs
@@ -9,6 +9,8 @@ pub use login::LoginPage;
 mod mf2;
 pub use mf2::{Entry, VCard, Feed, Food, POSTS_PER_PAGE};
 
+pub mod admin;
+
 pub mod assets {
     use axum::response::{IntoResponse, Response};
     use axum::extract::Path;