Skip to content

Commit

Permalink
modified rst file
Browse files Browse the repository at this point in the history
  • Loading branch information
kracekumar committed Nov 17, 2012
1 parent bd8f78a commit 16df852
Showing 1 changed file with 9 additions and 9 deletions.
18 changes: 9 additions & 9 deletions README → README.rst
@@ -1,21 +1,21 @@
SimpleURL
====
=========

SimpleURL
======
=========

SimpleURL is based on Werkzeug routing system for Brubeck.

Why not use regex based routing system?
----
---------------------------------------

- Regex is hard.

- Too complicated.

- Easy to make mistake.
Example
----
-------
@app.add_url_route('^/brubeck')
@app.add_url_route('^/brubeck/\d')

Expand All @@ -26,7 +26,7 @@ Why not use regex based routing system?


Why Werkzeug ?
----
--------------

- Simple

Expand All @@ -41,7 +41,7 @@ Why Werkzeug ?


Talk is cheap, show me the code
----
-------------------------------

```
#! /usr/bin/env python
Expand Down Expand Up @@ -90,7 +90,7 @@ app.run()
If URL Rule is not found `werkzeug.exceptions.NotFound: 404: Not Found` is raised

Note:
---
-----
From Flask quick start page

Unique URLs / Redirection Behavior
Expand All @@ -113,12 +113,12 @@ In the second case, however, the URL is defined without a trailing slash, rather
This behavior allows relative URLs to continue working if users access the page when they forget a trailing slash, consistent with how Apache and other servers work. Also, the URLs will stay unique, which helps search engines avoid indexing the same page twice.

Reference
----
---------

For more info about `Werkzeug Routing <http://werkzeug.pocoo.org/docs/routing/>`_.
```
Development
---
-----------

The SimpleURL development version can be installed by cloning the git
repository from `github`_::
Expand Down

0 comments on commit 16df852

Please sign in to comment.