mirror of
https://github.com/datafolklabs/cement.git
synced 2026-02-06 15:26:47 +00:00
Adding root template dir
This commit is contained in:
parent
54f74db795
commit
430efdeabb
@ -1,12 +1,12 @@
|
||||
"""
|
||||
This is the RootController for the {{package}} application. Usually this
|
||||
file will remain pretty sparse, however it is a good place for miscellaneous
|
||||
commands that might night need there own namespace or controller.
|
||||
commands that might not need there own namespace or controller.
|
||||
"""
|
||||
|
||||
from cement.core.controller import CementController, expose
|
||||
|
||||
class RootController(CementController):
|
||||
@expose('{{package}}.templates.error', is_hidden=True)
|
||||
@expose('{{package}}.templates.root.error', is_hidden=True)
|
||||
def error(self, errors={}):
|
||||
return dict(errors=errors)
|
||||
@ -1 +0,0 @@
|
||||
__import__('pkg_resources').declare_namespace(__name__)
|
||||
@ -1,12 +1,12 @@
|
||||
"""
|
||||
This is the RootController for the helloworld application. Usually this
|
||||
file will remain pretty sparse, however it is a good place for miscellaneous
|
||||
commands that might night need there own namespace or controller.
|
||||
commands that might not need there own namespace or controller.
|
||||
"""
|
||||
|
||||
from cement.core.controller import CementController, expose
|
||||
|
||||
class RootController(CementController):
|
||||
@expose('helloworld.templates.error', is_hidden=True)
|
||||
@expose('helloworld.templates.root.error', is_hidden=True)
|
||||
def error(self, errors={}):
|
||||
return dict(errors=errors)
|
||||
@ -1 +0,0 @@
|
||||
__import__('pkg_resources').declare_namespace(__name__)
|
||||
Loading…
Reference in New Issue
Block a user