GET parameters, rendering HTML with ejs

This commit is contained in:
DarkCat09
2023-08-14 16:39:40 +04:00
parent 0b4663195c
commit 94f14d31ab
8 changed files with 178 additions and 67 deletions

12
templates/index.ejs Normal file
View File

@ -0,0 +1,12 @@
<!DOCTYPE html>
<html lang="<%= parsed.lang %>">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title><%= parsed.title %></title>
</head>
<body>
<h1><%= parsed.title %></h1>
<main><%- parsed.content %></main>
</body>
</html>