amethyst-framework / amethyst

Amethyst is a Rails inspired web-framework for Crystal language
https://github.com/amethyst-framework
MIT License
648 stars 46 forks source link

Don't need to register controllers manually #36

Open alex-fedorov opened 8 years ago

alex-fedorov commented 8 years ago

You can define inherited hook on base controller. Example:

http://play.crystal-lang.org/#/r/7kn

all the hooks can be found in this spec: https://github.com/manastech/crystal/blob/119ccc89065165bc937b3417e5ac2af2bab6e056/spec/compiler/codegen/hooks_spec.cr

sdogruyol commented 8 years ago

Wow that's pretty neat :+1: