Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

[November] added workaround

For [perl #79642], which causes optional hash params to behave strangely
when not bound to anything.
  • Loading branch information...
commit 86acff6014e03f5941f4f75ef64a151b6867f3cd 1 parent cab63dd
Carl Mäsak masak authored
Showing with 3 additions and 2 deletions.
  1. +3 −2 lib/November.pm
5 lib/November.pm
View
@@ -371,8 +371,9 @@ class November does November::Session does November::Cache {
self.response('list_all_pages.tmpl', %params);
}
- # RAKUDO: die at hash merge if %params undef, so I use default value
- method response ($tmpl, %params?={}, %opts?) {
+ # RAKUDO: Instead of %params? we do %params = {}, because the former
+ # doesn't quite work. [perl #79642]
+ method response ($tmpl, %params = {}, %opts = {}) {
my $template = HTML::Template.from_file($.config.template_path ~ $tmpl);
$template.with_params(
Please sign in to comment.
Something went wrong with that request. Please try again.