app_controller.coffeetools/templates/app/controllers/ | |
|---|---|
class $App$.AppController extends Batman.Controller
index: -> | |
| Add actions to this controller by defining functions on it. show: (params) -> | |
| Routes can optionally be declared inline with the callback on the controller: edit: @route('/$name$/:id', (params) -> ... ) | |
| Add functions to run before an action with @beforeFilter 'someFunctionKey' # or @beforeFilter -> ... | |