Skip to content
This repository
Browse code

[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 authored November 23, 2010

Showing 1 changed file with 3 additions and 2 deletions. Show diff stats Hide diff stats

  1. 5  lib/November.pm
5  lib/November.pm
@@ -371,8 +371,9 @@ class November does November::Session does November::Cache {
371 371
         self.response('list_all_pages.tmpl', %params);
372 372
     }
373 373
 
374  
-    # RAKUDO: die at hash merge if %params undef, so I use default value
375  
-    method response ($tmpl, %params?={}, %opts?) {
  374
+    # RAKUDO: Instead of %params? we do %params = {}, because the former
  375
+    #         doesn't quite work. [perl #79642]
  376
+    method response ($tmpl, %params = {}, %opts = {}) {
376 377
         my $template = HTML::Template.from_file($.config.template_path ~ $tmpl);
377 378
 
378 379
         $template.with_params(

0 notes on commit 86acff6

Please sign in to comment.
Something went wrong with that request. Please try again.