Skip to content

Commit

Permalink
Merge branch 'main' of github.com:dymmond/lilya
Browse files Browse the repository at this point in the history
  • Loading branch information
tarsil committed Apr 17, 2024
2 parents 4cc37b8 + 8fa223e commit ca0464b
Show file tree
Hide file tree
Showing 4 changed files with 18 additions and 8 deletions.
10 changes: 10 additions & 0 deletions docs/release-notes.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,16 @@ hide:

# Release Notes

## 0.3.5

### Changed

- Documentation improvements.

### Fixed

- Typo in the create project directive urls file descripton.

## 0.3.4

### Added
Expand Down
2 changes: 1 addition & 1 deletion docs/routing.md
Original file line number Diff line number Diff line change
Expand Up @@ -250,7 +250,7 @@ Includes are unique to Lilya, powerful and with more control and allows:
6. Less human lead bugs.

!!! Warning
Includes **DO NOT** take path parameters. E.g.: `Include('/{name:path}, routes=[...])`.
Includes **DO NOT** take path parameters. E.g.: `Include('/include/{id:int}, routes=[...])`.

### Include and application

Expand Down
2 changes: 1 addition & 1 deletion lilya/__init__.py
Original file line number Diff line number Diff line change
@@ -1 +1 @@
__version__ = "0.3.4"
__version__ = "0.3.5"
Original file line number Diff line number Diff line change
Expand Up @@ -6,14 +6,14 @@ The `route_patterns` list routes URLs to views.

Examples:
Function views:
1. Add an import: from my_app.views import home
2. Add a URL to route_patterns: Gateway('/', handler=home, name='home')
1. Add an import: from my_app.views import home
2. Add a URL to route_patterns: Path('/', handler=home, name='home')
Class-based views:
1. Add an import: from other_app.views import Home
2. Add a URL to route_patterns: Gateway('/', handler=Home, name='home')
1. Add an import: from other_app.views import Home
2. Add a URL to route_patterns: Path('/', handler=Home, name='home')
Including another configuration:
1. Import the Include object: from lilya import Include
2. Add a URL to route_patterns: Gateway('/api/v1/', Include(namespace='myapp.urls'))
1. Import the Include object: from lilya.routing import Include
2. Add a URL to route_patterns: Include('/api/v1/', namespace='myapp.urls'))
"""
from lilya.routing import Path, Include

Expand Down

0 comments on commit ca0464b

Please sign in to comment.