Skip to content

Commit

Permalink
Update README.rst
Browse files Browse the repository at this point in the history
  • Loading branch information
moluwole committed Aug 21, 2018
1 parent b2f7161 commit 900099f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion README.rst
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,7 @@ You do not need to import your controller again
from bast import Route
route = Route()
route.get(url='/', controller='ExampleController.index')
route.get('/', 'ExampleController.index')
Bast Controllers are Python Classes which inherit from the Bast Controller Class. Using ``panther create:controller ControllerName`` creates a controller file in the controller package. To render template in controller, use ``self.view('template.html', args=None)`` where the args is a Dictionary object and optional

Expand Down

0 comments on commit 900099f

Please sign in to comment.