Skip to content
Myr

Merge pull request #1318 from cerivera/master

Before adoption: this commit came in with the history the project adopted, so no landing records it.

grammar fixes

authored by Markus Unterwaditzer · committed by Markus Unterwaditzer · parents dfeabb7, 65465ff · Browse files · 1 file+3 added−3 removed
This commit

State

Before adoption: this commit came in with the history the project adopted, so no landing records it.

Diff stats

1 file+3 added−3 removed

  • other:+3 added−3 removed

1 file+3 added−3 removed

modified:docs/quickstart.rst+3 added-3 removed
16 unmodified lines
17 app = Flask(__name__)1819 @app.route('/')20 def hello_world():21 return 'Hello World!'21 return 'Hello, World!'2223So what did that code do?24251. First we imported the :class:`~flask.Flask` class. An instance of this
145 unmodified lines
171 return 'Index Page'172173 @app.route('/hello')174 def hello():175 return 'Hello World'175 return 'Hello, World'176177But there is more to it! You can make certain parts of the URL dynamic and178attach multiple rules to a function.179
249 unmodified lines
429 <title>Hello from Flask</title>430 {% if name %}431 <h1>Hello {{ name }}!</h1>432 {% else %}433 <h1>Hello World!</h1>433 <h1>Hello, World!</h1>434 {% endif %}435436Inside templates you also have access to the :class:`~flask.request`,437:class:`~flask.session` and :class:`~flask.g` [#]_ objects
442 unmodified lines