@sdogruyol sdogruyol released this Jul 1, 2017 · 124 commits to master since this release

Assets 2
  • Crystal 0.23.0 support! As always, Kemal is compatible with the latest major release of Crystal 💎
  • Great news everyone 🎉 All handlers are now completely customizable!. Use the default Kemal handlers or go wild, it's all up to you
# Don't forget to add `Kemal::RouteHandler::INSTANCE` or your routes won't work!
Kemal.config.handlers = [Kemal::InitHandler.new, YourHandler.new, Kemal::RouteHandler::INSTANCE]

You can also insert a handler into a specific position.

# This adds MyCustomHandler instance to 1 position. Be aware that the index starts from 0.
add_handler MyCustomHandler.new, 1
  • Updated Kilt to v0.4.0.
  • Make Route a Struct. This improves the performance of route declarations.