The Perl Toolchain Summit needs more sponsors. If your company depends on Perl, please support this very important event.

Changes for version 0.154000 - 2014-11-17

  • BUG FIXES
    • GH #744: Serialize anything, not just references. (Sawyer X)
    • GH #744: Serialize regardless of content_type of serializer. (Sawyer X)
    • GH #764: Catch template render errors. (Russell Jenkins, Steven Humphrey)
    • Calling uri_for(undef) doesn't crash. (Sawyer X)
    • GH #732: Correct name for 403 (Forbidden, not Unauthorized). (Theo van Hoesel, Sawyer X, Mickey Nasriachi, Omar M. Othman)
    • GH #753: Syntax of parameterized types. (Russell Jenkins)
    • GH #734: Failing tests on Windows. (Russell Jenkins, Sawyer X)
  • ENHANCEMENTS
    • GH #664, #684, #715: Handler::File replaced for static files with Plack::Middleware::Static, allowing files to be served *before* routes. This means hooks do not apply to static files anymore! (Russell Jenkins, DavsX)
    • Engines now have "logger" attribute to log errors. It sends the Dancer2::Logger:: object, if one exists. (Sawyer X)
    • Serializers do not need to implement "loaded" method. (Sawyer X)
    • GH #733: In core: response_xxx removed in favor of generic standard_response. (Sawyer X, Mickey Nasriachi, Omar M. Othman)
    • GH #514, #642, #729: Allow mixing named params, splat, and megasplat. (Russell Jenkins, Johan Spade, Dávid Kovács)
    • GH #596: no_server_tokens works, as well as DANCER_NO_SERVER_TOKENS. (Omar M. Othman, Sawyer X, Mickey Nasriachi)
    • GH #639: Validate engine types in configuration. (Sawyer X, Omar M. Othman, Mickey Nasriachi, Russell Jenkins)
    • GH #663, #741: Remove "accept_type" attribute and other references. (Mickey Nasriachi, Theo van Hoesel)
    • GH #748: Provide forwarded_host, forwarded_protocol. (Sawyer X)
    • GH #748: Do not provide a default env, require env for a request. (Sawyer X)
    • GH #742: Update test skeleton to use to_app. (Dávid Kovács)
    • GH #636: Use Plack::Test in more tests. (Dávid Kovács)
  • DOCUMENTATION
    • GH #656: Dancer2::Manual::Testing as a guide for testing Dancer2 applications. (Sawyer X)
    • Improved documentation of route matching. (Russell Jenkins)
    • Migration document update relating to enhancements. (Sawyer X, Mickey Nasriachi)
    • GH #731: Document changes in session. (racke, Sawyer X, Mickey Nasriachi, Omar M. Othman)
    • Document "id" attribute in Request object. (Sawyer X)
    • Correct Cookbook examples on command line scripts. (Sawyer X)

Documentation

Configure Dancer2 to suit your needs
Example-driven quick-start to the Dancer2 web framework
A gentle introduction to Dancer2
Migrating from Dancer to Dancer2
Writing tests for Dancer2
Recommended Dancer2 plugins
Dancer core and community policy and standards of conduct
An example to get you dancing
Dancer2 command line interface

Modules

Lightweight yet powerful web application framework
Dancer2 cli application
create new Dancer2 application
Core libraries for Dancer2 2.0
encapsulation of Dancer2 packages
A cookie representing class
Dancer2's Domain Specific Language (DSL)
Class for dispatching request to the appropriate route handler
Class representing fatal errors
Instantiate components by type and name
helper for rendering HTTP status codes for Dancer2
Manipulate hooks with Dancer2
Class to ease manipulation of MIME types
Interface for accessing incoming requests
Class representing file upload requests
Response object for Dancer2
Config role for Dancer2 core objects
Role for engines
Role for Handlers
Role for application location "guessing"
Role for handling headers
Role for hookable objects
Role for logger engines
Role for Serializer engines
Role for session factories
Role for file-based session factories
Role to provide commonly used responses
Role for template engines
Dancer2's route handler
Top-layer class to start a dancer app
class to represent any session object
class to handle common helpers for time manipulations
Moo types for Dancer2 core.
File utility helpers
Class for handling the AutoPage feature
class for handling file content rendering
Capture dancer logs
a place to store captured Dancer2 logs
Console logger
Test::More diag() logging engine for Dancer2
file-based logging engine for Dancer2
Test::More note() logging engine for Dancer2
Blackhole-like silent logging engine for Dancer2
Extending Dancer2's DSL with plugins
a plugin for adding Ajax route handlers
Serializer for handling Dumper data
Serializer for handling JSON data
Serialize and deserialize content based on HTTP header
Serializer for handling YAML data
in-memory session backend for Dancer2
YAML-file-based session backend for Dancer2
Dancer2 own implementation of Template::Tiny
Pure Perl 5 template engine for Dancer2
Template toolkit engine for Dancer2
Template::Tiny engine for Dancer2
Useful routines for testing Dancer2 apps