diff --git a/README.md b/README.md index 050e8de..2b8ca3c 100644 --- a/README.md +++ b/README.md @@ -2550,7 +2550,7 @@ def serve_file(filename): def serve_html(sport): return flask.render_template_string('

{{title}}

', title=sport) ``` -* **Use `'render_template(filename, )'` to render template file.** +* **Use `'render_template(filename, )'` to render file located in templates dir.** * **To return an error code use `'abort()'` and to redirect use `'redirect()'`.** * **`'request.args[]'` returns parameter from the query string (URL part after '?').** * **Use `'session[key] = value'` to store session data like username, etc.** diff --git a/index.html b/index.html index e60a8e3..ca92d8f 100644 --- a/index.html +++ b/index.html @@ -2094,7 +2094,7 @@ app.run(host=None, port='render_template(filename, <kwargs>)' to render template file. +
  • Use 'render_template(filename, <kwargs>)' to render file located in templates dir.
  • To return an error code use 'abort(<int>)' and to redirect use 'redirect(<url>)'.
  • 'request.args[<str>]' returns parameter from the query string (URL part after '?').
  • Use 'session[key] = value' to store session data like username, etc.