From 478f73b93c37e5e32ce33eb1de963eeb23a5cc40 Mon Sep 17 00:00:00 2001 From: Runxi Yu Date: Thu, 13 Mar 2025 12:18:53 +0800 Subject: Add basic template rendering --- main.ha | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) (limited to 'main.ha') diff --git a/main.ha b/main.ha index aa0364f..fc38f25 100644 --- a/main.ha +++ b/main.ha @@ -67,7 +67,5 @@ export fn main() void = { export fn handlereq(conn: io::handle, request: *http::request) (void | io::error | nomem) = { htmpl::write(conn, "HTTP/1.1 200 OK\r\n")?; htmpl::write(conn, "Content-Type: text/html\r\n\r\n")?; - htmpl::write(conn, "

")?; - htmpl::write_escape_html(conn, "Hey there <3")?; - htmpl::write(conn, "

")?; + tp_index(conn)?; }; -- cgit v1.2.3