This shows you the differences between two versions of the page.
ii:labs:s2:02:tasks:04 [2024/03/17 18:42] florin.stancu [04. [10p] Serving dynamic content] |
ii:labs:s2:02:tasks:04 [2024/03/17 18:43] (current) florin.stancu [04. [10p] Serving dynamic content] |
||
---|---|---|---|
Line 13: | Line 13: | ||
render_template("second.html", mycontent=request.args.get("mycontent", "<not specified>")) | render_template("second.html", mycontent=request.args.get("mycontent", "<not specified>")) | ||
</code> | </code> | ||
- | * Open the endpoint URL and pass the ''mycontent'' value as GET (//www-urlencoded//) parameter and see if the content changes dynamically after the request! | + | * Open the endpoint URL and pass the ''mycontent'' value as a ''GET'' //URL parameter// (e.g., ''?parameter=value'') and see if the content changes dynamically after the request! |
- | * This is a template engine called Jinja, seamlessly integrated with Flask (they have the same developers ;)! More about this: next time! | + | * This is a template engine called Jinja, seamlessly integrated with Flask. More about this: next time! |