Dancer2 1.1.0 Released #1703
cromedome
announced in
Announcements
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Hey everyone,
Happy Holidays! Dancer2 1.1.0 has been released and is on its way to CPAN. It has one really awesome new feature: named routes.
With this update, you can name each route in your Dancer2 application, then refer to that route by name with a new keyword,
uri_for_route
. You have a lot of control over how this route is constructed, and can use it anywhere you were previously usinguri_for
. This helps you to avoid the need for lengthy URL references in your code, and makes it easier for you to build applications that are easier to grow, maintain, and later refactor.You can read more about it in the Dancer2 manual, or check out the pull request (#1270) that introduced the change. As a bonus, the Twelve Days of Dancer (our mini-advent calendar) launches this week, and @xsawyerx has written a great article that covers this new feature and keyword in-depth.
Happy Dancing!
Jason/CromeDome
Beta Was this translation helpful? Give feedback.
All reactions