Skip to content

Commit

Permalink
chore: bump version and docs
Browse files Browse the repository at this point in the history
  • Loading branch information
jerivas committed Feb 28, 2022
1 parent 0d8f2fc commit 91786d6
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 1 deletion.
9 changes: 9 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -124,6 +124,15 @@ def view(request, id):

More examples are available in the [demo folder](https://github.com/jerivas/django-file-router/tree/main/demo).

## Configuration

The `file_patterns` function accepts the following arguments:

| Arg | Description |
|---|---|
| `append_slash` | Boolean. If `True` will add a trailing slash to the generated patterns. |
| `exclude` | String (glob). If set each file will be checked against this pattern and excluded from the pattern generation process altogether. Useful if you want to completely avoid importing certain files (like tests). |

## FAQ

### What about separation of concerns?
Expand Down
2 changes: 1 addition & 1 deletion file_router/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
from django.template import RequestContext, Template
from django.urls import path

__version__ = "0.3.0"
__version__ = "0.4.0"

DISALLOWED_CHARS = re.compile(
"|".join(
Expand Down

0 comments on commit 91786d6

Please sign in to comment.