From cafc557c6820e1808b1e4cf71f58ff99b97ca545 Mon Sep 17 00:00:00 2001 From: Mitsuo Tokumori Date: Sat, 28 Oct 2023 11:44:09 -0500 Subject: Add blueprint blog --- README.md | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) (limited to 'README.md') diff --git a/README.md b/README.md index 77aa31e..9298471 100644 --- a/README.md +++ b/README.md @@ -14,9 +14,10 @@ flask --app flaskr run --debug ## Learning resources -* Flask: https://flask.palletsprojects.com/en/3.0.x/#user-s-guide +* [Flask user guide](https://flask.palletsprojects.com/en/3.0.x/#user-s-guide) * DB: https://sqlite.org/lang.html -* Template: https://jinja.palletsprojects.com/templates/ +* [Jinja Template](https://jinja.palletsprojects.com/templates/) + * [For loops](https://jinja.palletsprojects.com/en/3.1.x/templates/#for) Concepts: @@ -34,7 +35,8 @@ Concepts: data that is rendered in HTML templates, so it's safe to render user input. * `{{ }}` denotes expressions (output) (similar to python) * `{% %}` denotes control flow statements (similar to pseudo-code) - * Automatically available: `g`, `url_for`, and more + * `{# #}` denotes a comment + * Automatically available: `g`, `url_for`, `request`, and more * In base.html you define "blocks" placeholder which are later defined in other templates that extend base.html -- cgit v1.2.3