Skip to content
Browse files

Merge pull request #199 from geekman/master

Discover 'views' from the local directory, just like 'filters' & 'tasks'
  • Loading branch information...
2 parents 9e05d4f + 5580b7e commit ef764a485b2f972f9c625c491dcc7aec2ec78f63 @posativ committed Jan 16, 2014
Showing with 1 addition and 0 deletions.
  1. +1 −0 acrylamid/views/__init__.py
View
1 acrylamid/views/__init__.py
@@ -89,6 +89,7 @@ def initialize(directories, conf, env):
urlmap.append((rule, item))
directories += [os.path.dirname(__file__)]
+ directories += ['views/']
helpers.discover(directories, partial(index_views, conf, env, urlmap),
lambda path: path.rpartition('.')[0] != __file__.rpartition('.')[0])

0 comments on commit ef764a4

Please sign in to comment.
Something went wrong with that request. Please try again.