Flask 3 · Templates, sessions and config
Link to a static file
Build the URL of a file in the static folder.
<link rel="stylesheet" href="{{ url_for('static', filename='style.css') }}">
Official Flask 3 documentation
More templates, sessions and config commands
- Render a template
- Loop in a template
- Share a layout
- Remember a user between requests
- Load configuration
- Show a one-time message
All templates, sessions and config commands · Flask 3 cheatsheet