📝 Update template docs with more info about url_for (#5937)

Co-authored-by: Sebastián Ramírez <tiangolo@gmail.com>
This commit is contained in:
Ezzeddin Abdullah
2024-01-12 00:25:37 +02:00
committed by GitHub
parent 22e68b151d
commit 0c796747a3
3 changed files with 49 additions and 6 deletions

View File

@@ -4,6 +4,6 @@
<link href="{{ url_for('static', path='/styles.css') }}" rel="stylesheet">
</head>
<body>
<h1>Item ID: {{ id }}</h1>
<h1><a href="{{ url_for('read_item', id=id) }}">Item ID: {{ id }}</a></h1>
</body>
</html>