Brilliant, great to hear Jason! Thanks to you and the team for making this happen.

Just a quick plug for the new hook "on_hook_exception". As the name suggests, this can be used to better handle exceptions that happen in hooks. Previously these could result in rendered errors such as below, even with the server running in production mode (with show_errors disabled):

Exception caught in 'core.app.after_request' filter: Hook error: Can't call method "bar" on an undefined value at...

The new hook can be used to completely change the final response object.

Andy



On 15/09/2025 22:59, Jason A. Crome wrote:
At long last - Dancer2 2.0.0!

I apologize it took longer than expected - open source doesn't always move as fast as we'd like it to - but there's a lot of great things in this release that make it worth the wait.

Head on over to Perl.com to check out the details. Here's a quick summary of what's new:

- New documentation, courtesy of a grant from the Perl and Raku Foundation
- Extendable config system, thanks to Mikko Koivunalho
- Removed Dancer2::Template::Simple from core Dancer2
- Retired our fork of Template::Tiny, and integrated our changes into the core distribution (thanks, @ether!)
- Configurable data/secrets censoring with Data::Censor
- Logging of hooks as they are executed
- New hook: on_hook_exception
- CLI improvements:
    - Changes that allow for scaffolding of other things (plugins, etc.) in future Dancer2 releases
    - Scaffolding of tutorial app

We're really excited for this release, and we hope you are too!

Keep Dancing!
Jason/CromeDome and the Dancer Core Team


_______________________________________________
dancer-users mailing list
dancer-users@lists.preshweb.co.uk
https://lists.preshweb.co.uk/mailman/listinfo/dancer-users