elysia-response
v1.0.1
Published
``` html <!DOCTYPE html> <html lang="en"> <head> <meta charset="UTF-8"> <meta name="viewport" content="width=device-width, initial-scale=1.0"> <title>Webtoon</title> </head> <body> {{{ children }}} </body> </html> ```
Downloads
2
Readme
Create App.html to src folder in your project
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Webtoon</title>
</head>
<body>
{{{ children }}}
</body>
</html>
Example to use
// App.ts
import { Elysia } from "elysia";
import { ElysiaResponse } from "elysia-response"
const Response = new ElysiaResponse();
new Elysia()
.get("/", () => Response.render("Home", { message:"Hello world!" }) )
.listen( 3000 );