update
This commit is contained in:
		
							
								
								
									
										14
									
								
								2024.02.26_flask_example/my_flask_app/templates/about.html
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										14
									
								
								2024.02.26_flask_example/my_flask_app/templates/about.html
									
									
									
									
									
										Normal file
									
								
							| @@ -0,0 +1,14 @@ | ||||
| <!DOCTYPE html> | ||||
| <html lang="en"> | ||||
| <head> | ||||
|     <meta charset="UTF-8"> | ||||
|     <meta name="viewport" content="width=device-width, initial-scale=1.0"> | ||||
|     <title>About</title> | ||||
| </head> | ||||
| <body> | ||||
|     <h1>About Me</h1> | ||||
|     <p>This is the about page content. My name is {{name}}.</p>   | ||||
|     <p><a href="/">Home</a></p> | ||||
|     <!-- Flask使用的是Jinja2模板引擎。Jinja2使用 {{ 和 }} 来标识变量/动态内容。 --> | ||||
| </body> | ||||
| </html> | ||||
							
								
								
									
										12
									
								
								2024.02.26_flask_example/my_flask_app/templates/index.html
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										12
									
								
								2024.02.26_flask_example/my_flask_app/templates/index.html
									
									
									
									
									
										Normal file
									
								
							| @@ -0,0 +1,12 @@ | ||||
| <!DOCTYPE html> | ||||
| <html lang="en"> | ||||
| <head> | ||||
|     <meta charset="UTF-8"> | ||||
|     <meta name="viewport" content="width=device-width, initial-scale=1.0"> | ||||
|     <title>Home</title> | ||||
| </head> | ||||
| <body> | ||||
|     <h1>Welcome to My Homepage!</h1> | ||||
|     <p><a href="/about">About</a></p> | ||||
| </body> | ||||
| </html> | ||||
		Reference in New Issue
	
	Block a user