Showcasing users
We are going to modify routes for /users/<uuid>
and /users/
by taking the following steps:
- The first thing we need to do is to create a template. We already configured the folder for templates in
/src/views
, so create aviews
folder in thesrc
folder and then, inside theviews
folder, create a template file namedtemplate.html.tera
. - We are going to use the file as the base HTML template for all HTML files. Inside
src/views/template.html.tera
, add HTML tags as follows:<!DOCTYPE html> <html lang="en"> <head> <meta charset="utf-8" /> <title>Our Application User</title> <link href="/assets/mini-default.css" rel="stylesheet"> <link rel="icon" type="image/png" href="/assets/ favicon.png"> <meta name="viewport" content="width=device-width...