Skip to content
Browse files

Discover 'views' from the local directory, just like 'filters' and 't…

…asks'.
  • Loading branch information...
1 parent 9e05d4f commit 5580b7ef84a1e5335722bf424d6d4d69ac7f8499 @geekman geekman committed Jan 8, 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 5580b7e

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