mirror of
https://github.com/Xevion/time-banner.git
synced 2025-12-12 16:13:19 -06:00
Remove template printing, copy /src/templates dir in Dockerfile
This commit is contained in:
@@ -59,8 +59,6 @@ async fn main() {
|
||||
async fn root_handler(_connect_info: ConnectInfo<SocketAddr>) -> impl IntoResponse {
|
||||
let renderer = svg::Renderer::new();
|
||||
|
||||
TEMPLATES.get_template_names().into_iter().for_each(|x| println!("{}", x));
|
||||
|
||||
let mut context = Context::new();
|
||||
context.insert("text", &_connect_info.ip());
|
||||
let data = TEMPLATES.render("basic.svg", &context);
|
||||
|
||||
Reference in New Issue
Block a user