File tree Expand file tree Collapse file tree 1 file changed +2
-0
lines changed Expand file tree Collapse file tree 1 file changed +2
-0
lines changed Original file line number Diff line number Diff line change @@ -302,11 +302,13 @@ The key players are the `Flask` application instance (which holds the Jinja2 env
302302
303303Templating is a fundamental technique for building dynamic web pages. Flask integrates seamlessly with the powerful Jinja2 template engine.
304304
305+ {% raw %}
305306* We learned that templating separates HTML structure from Python logic.
306307* Flask looks for templates in a ` templates ` folder by default.
307308* The ` render_template() ` function is used to load a template file and pass data (context variables) to it.
308309* Jinja2 templates use ` {{ variable }} ` to display data and ` {% statement %} ` for control flow (like ` if ` and ` for ` ).
309310* The ` url_for() ` function is available in templates for generating URLs dynamically.
311+ {% endraw %}
310312
311313Now you can create clean, maintainable HTML pages driven by your Flask application's data and logic.
312314
You can’t perform that action at this time.
0 commit comments