Skip to content

Commit

Permalink
Bump to 0.7.0
Browse files Browse the repository at this point in the history
  • Loading branch information
asvetlov committed Dec 29, 2015
1 parent 49f24e0 commit ec6e676
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 3 deletions.
7 changes: 7 additions & 0 deletions CHANGES.txt
Original file line number Diff line number Diff line change
@@ -1,6 +1,13 @@
CHANGES
=======

0.7.0 (2015-12-30)
------------------

- Add ability to decorate class based views (available in aiohttp 0.20) #18

- Upgrade aiohttp requirement to version 0.20.0+

0.6.2 (2015-11-22)
------------------

Expand Down
6 changes: 3 additions & 3 deletions aiohttp_jinja2/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
from aiohttp.abc import AbstractView


__version__ = '0.6.3'
__version__ = '0.7.0'

__all__ = ('setup', 'get_env', 'render_template', 'template')

Expand All @@ -23,8 +23,8 @@ def setup(app, *args, app_key=APP_KEY, context_processors=(), **kwargs):
app[APP_CONTEXT_PROCESSORS_KEY] = context_processors
app.middlewares.append(context_processors_middleware)

def url(__aiohttp_jinjs2_route_name, **kwargs):
return app.router[__aiohttp_jinjs2_route_name].url(**kwargs)
def url(__aiohttp_jinja2_route_name, **kwargs):
return app.router[__aiohttp_jinja2_route_name].url(**kwargs)

env.globals['url'] = url
env.globals['app'] = app
Expand Down

0 comments on commit ec6e676

Please sign in to comment.