Skip to content

Commit d32ff1c

Browse files
committed
init push
1 parent fd99e41 commit d32ff1c

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

docs/Flask/04_templating__jinja2_integration_.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -302,11 +302,13 @@ The key players are the `Flask` application instance (which holds the Jinja2 env
302302

303303
Templating 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

311313
Now you can create clean, maintainable HTML pages driven by your Flask application's data and logic.
312314

0 commit comments

Comments
 (0)