From 527e5a5fe17a762b9f1c4b34f9b341e22c11e5cb Mon Sep 17 00:00:00 2001 From: baalajimaestro Date: Sat, 19 Nov 2022 22:56:05 +0530 Subject: [PATCH] Improve the template Add syntax highlighting, add a proper footer Signed-off-by: baalajimaestro --- src/main.rs | 2 +- templates/paste.html | 66 ++++++++++++++++++++++++++++++++++++++------ 2 files changed, 59 insertions(+), 9 deletions(-) diff --git a/src/main.rs b/src/main.rs index e0c04ae..64f296e 100644 --- a/src/main.rs +++ b/src/main.rs @@ -32,7 +32,7 @@ async fn main() -> std::io::Result<()> { .app_data(Data::clone(&data)) .service(paste_render) }) - .bind(("127.0.0.1", 8080))? + .bind(("0.0.0.0", 8080))? .run() .await } diff --git a/templates/paste.html b/templates/paste.html index c44d924..799fab4 100644 --- a/templates/paste.html +++ b/templates/paste.html @@ -1,17 +1,67 @@ - - + + + + + + + + -

- Obsolute Paste - baalajimaestro -

+
+

+ Obsolute Paste - baalajimaestro +

{% block content %} - +

{{paste_content}}

{% endblock content %} +
+
+ ©2022 Maestro Creativescape. + + +