📝 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 AbdullahandSebastián Ramírez authored and GitHub committed 2024-01-11 23:25:37 +01:00
1 parent 22e68b151d
commit 0c796747a3
3 files changed
+49 -6

No files matched your search

+1 -1
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>