Browse Source

Minor Update

bugfixes
harshadyeola 10 years ago
parent
commit
5624c0eac7
  1. 5
      ee/cli/controllers/base.py
  2. 5
      ee/cli/controllers/site.py
  3. 5
      ee/cli/main.py

5
ee/cli/controllers/base.py

@ -17,7 +17,10 @@ class EEBaseController(CementBaseController):
@expose(hide=True) @expose(hide=True)
def default(self): def default(self):
print("Inside EEBaseController.default().") data = dict(foo='EEBaseController.default().')
self.app.render((data), 'default.mustache')
# print("Inside EEBaseController.default().")
# If using an output handler such as 'mustache', you could also # If using an output handler such as 'mustache', you could also
# render a data dictionary using a template. For example: # render a data dictionary using a template. For example:

5
ee/cli/controllers/site.py

@ -94,7 +94,10 @@ class EESiteCreateController(CementBaseController):
@expose(hide=True) @expose(hide=True)
def default(self): def default(self):
# TODO Default action for ee site command # TODO Default action for ee site command
print("Inside EESiteCreateController.default().") data = dict(foo='EESiteCreateController.default().')
self.app.render((data), 'default.mustache')
# print("Inside EESiteCreateController.default().")
class EESiteUpdateController(CementBaseController): class EESiteUpdateController(CementBaseController):

5
ee/cli/main.py

@ -36,6 +36,11 @@ class EEApp(foundation.CementApp):
# Internal plugins (ship with application code) # Internal plugins (ship with application code)
plugin_bootstrap = 'ee.cli.plugins' plugin_bootstrap = 'ee.cli.plugins'
extensions = ['mustache', 'json']
# default output handler
output_handler = 'mustache'
class EETestApp(EEApp): class EETestApp(EEApp):
"""A test app that is better suited for testing.""" """A test app that is better suited for testing."""

Loading…
Cancel
Save