diff options
author | Marcel Hellkamp <marc@gsites.de> | 2014-11-27 18:58:00 +0100 |
---|---|---|
committer | Marcel Hellkamp <marc@gsites.de> | 2014-11-27 18:58:00 +0100 |
commit | 85b8e9b3694f6dd73dad7807034d844e9c35cc48 (patch) | |
tree | dfc57f969c8f7b22e6f6f9a3f74b343193d46d3c /docs | |
parent | d65c4e1224b9edb970f706cd26db9b576bdeefde (diff) | |
parent | 35853b8c4681716ffd21de908428c28e44ab3a9e (diff) | |
download | bottle-85b8e9b3694f6dd73dad7807034d844e9c35cc48.tar.gz |
Merge pull request #679 from avelino/tutorial_grammatical_corrections
fix typo tutorial grammatical corrections
Diffstat (limited to 'docs')
-rwxr-xr-x | docs/tutorial.rst | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/docs/tutorial.rst b/docs/tutorial.rst index 3b1dd2e..e9a010d 100755 --- a/docs/tutorial.rst +++ b/docs/tutorial.rst @@ -78,7 +78,7 @@ This tutorial assumes you have Bottle either :ref:`installed <installation>` or This is it. Run this script, visit http://localhost:8080/hello and you will see "Hello World!" in your browser. Here is how it works: -The :func:`route` decorator binds a piece of code to an URL path. In this case, we link the ``/hello`` path to the ``hello()`` function. This is called a `route` (hence the decorator name) and is the most important concept of this framework. You can define as many routes as you want. Whenever a browser requests an URL, the associated function is called and the return value is sent back to the browser. Its as simple as that. +The :func:`route` decorator binds a piece of code to an URL path. In this case, we link the ``/hello`` path to the ``hello()`` function. This is called a `route` (hence the decorator name) and is the most important concept of this framework. You can define as many routes as you want. Whenever a browser requests a URL, the associated function is called and the return value is sent back to the browser. It's as simple as that. The :func:`run` call in the last line starts a built-in development server. It runs on ``localhost`` port ``8080`` and serves requests until you hit :kbd:`Control-c`. You can switch the server backend later, but for now a development server is all we need. It requires no setup at all and is an incredibly painless way to get your application up and running for local tests. |