Skip to content

Commit

Permalink
v0.1.4 documentation fixes
Browse files Browse the repository at this point in the history
Fixed few misspells. Example of usage. Version bumped.
  • Loading branch information
Alexandr Shurigin committed Jun 29, 2014
1 parent d001cbb commit 321877b
Show file tree
Hide file tree
Showing 3 changed files with 17 additions and 6 deletions.
5 changes: 5 additions & 0 deletions CHANGELOG.markdown
Original file line number Diff line number Diff line change
@@ -1,3 +1,8 @@
v0.1.4
------

Readme fixes.

v0.1.3
------

Expand Down
16 changes: 11 additions & 5 deletions README.markdown
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
# [Django Macros Url](https://github.com/phpdude/django-macros-url/) v0.1.3 - Routing must be simple as possible
# [Django Macros Url](https://github.com/phpdude/django-macros-url/) v0.1.4 - Routing must be simple as possible

Django Macros Url makes it easy to write (and read) url patterns in your django applications by using macros.

You can combine your prefixes with macro names with underscope, for example you can use macro `:slug` and `:product_slug`. They both will be compiled to same regex pattern with their group names of course. Multiple underscopes accepted too.
You can combine your prefixes with macro names with underscore, for example you can use macro `:slug` and `:product_slug`. They both will be compiled to same regex pattern with their group names of course. Multiple underscores accepted too.

[![Build Status](https://travis-ci.org/phpdude/django-macros-url.svg?branch=master)](https://travis-ci.org/phpdude/django-macros-url)

Expand Down Expand Up @@ -76,8 +76,8 @@ urlpatterns = patterns(
url(':category_slug/:product_slug/', 'category_product'),
url(':category_slug/:product_slug/:variant_id', 'category_product_variant'),
url('news/', 'news'),
url('news/:year/:month/:day$', 'news_date'),
url('news/:slug$', 'news_entry'),
url('news/:year/:month/:day', 'news_date'),
url('news/:slug', 'news_entry'),
url('^order/:id$', 'order'),
)
```
Expand Down Expand Up @@ -105,8 +105,14 @@ I think you understand the difference of ways :)

#### Routing must be simple! ;-)

I think real raw url regexp patterns need in 1% case only. Prefer simple way to write (and read, this is important) fancy clean urls.
I think real raw url regexp patterns needed in 1% case only. Prefer simple way to write (and read, this is important) fancy clean urls.

### Contributor

Alexandr Shurigin (aka [phpdude](https://github.com/phpdude/))

### Additionals

Sorry for my english level :(

You are welcome fix readme to good english by pull request! Thank you.
2 changes: 1 addition & 1 deletion macrosurl/__init__.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import re

VERSION = (0, 1, 3)
VERSION = (0, 1, 4)

_macros_library = {
'id': r'\d+',
Expand Down

0 comments on commit 321877b

Please sign in to comment.