ceb606cc5c30634d78b8b2df262f320a6be41f0a
1 from pkg_resources
import resource_filename
3 from spline
.lib
.plugin
import PluginBase
4 from spline
.lib
.plugin
import PluginBase
, PluginLink
, Priority
6 import splinext
.frontpage
.controllers
.frontpage
8 def add_routes_hook(map, *args
, **kwargs
):
9 """Hook to inject some of our behavior into the routes configuration."""
10 map.connect('/', controller
='frontpage', action
='index')
13 class FrontPagePlugin(PluginBase
):
14 def controllers(self
):
16 frontpage
= splinext
.frontpage
.controllers
.frontpage
.FrontPageController
,
19 def template_dirs(self
):
21 (resource_filename(__name__
, 'templates'), Priority
.FIRST
)
26 ('routes_mapping', Priority
.NORMAL
, add_routes_hook
),