make example links clickable, for convenience
| | |
| | | .. literalinclude:: narr/helloworld.py |
| | | |
| | | After you install :app:`Pyramid` and run this application, when you visit |
| | | ``http://localhost:8080/hello/world`` in a browser, you will see the text |
| | | `<http://localhost:8080/hello/world>`_ in a browser, you will see the text |
| | | ``Hello, world!`` |
| | | |
| | | See :ref:`firstapp_chapter` for a full explanation of how this application |
| | |
| | | This command will not return and nothing will be printed to the console. |
| | | When port 8080 is visited by a browser on the URL ``/hello/world``, the |
| | | server will simply serve up the text "Hello world!". If your application is |
| | | running on your local system, using ``http://localhost:8080/hello/world`` |
| | | running on your local system, using `<http://localhost:8080/hello/world>`_ |
| | | in a browser will show this result. |
| | | |
| | | Each time you visit a URL served by the application in a browser, a logging |
| | |
| | | for URL generation. The name also allows developers to associate a view |
| | | configuration with the route. A route also has a *pattern*, meant to match |
| | | against the ``PATH_INFO`` portion of a URL (the portion following the scheme |
| | | and port, e.g. ``/foo/bar`` in the URL ``http://localhost:8080/foo/bar``). It |
| | | and port, e.g. ``/foo/bar`` in the URL `<http://localhost:8080/foo/bar>`_). It |
| | | also optionally has a ``factory`` and a set of :term:`route predicate` |
| | | attributes. |
| | | |