-
Notifications
You must be signed in to change notification settings - Fork 1
Customize a web page
Astremy edited this page Feb 3, 2020
·
2 revisions
To customize a web page, you need to pass arguments in the template. The template format the page with your arguments.
@site.path("/profile_of_astremy")
def profile_of_astremy():
return template("profile.html",name="Astremy")
@site.path("/profile_of_anyone")
def profile_of_anyone():
return template("profile.html",name="Anyone")<!DOCTYPE html>
<html>
<head>
<title>{name}'s profile</title>
</head>
<body>
<h2>Hello on {name}'s profile !</h2>
</body>
</html>