Commits

Fabrice Gabolde  committed f3695e7

Stare at default args for Views.

  • Participants
  • Parent commits 36baf2f

Comments (0)

Files changed (3)

File lib/Floop/View.pm

         return { configuration => $!app->configuration };
     }
 
-    method render($context, $tokens, @rest) {
+    method render($context, $tokens = {}, @rest) {
 
         my $body = $self->do_render($context, { %{$self->default_tokens},
                                                 context => $context,

File lib/Floop/View/DataDumper.pm

 
     use Data::Dumper;
 
-    method do_render($context, $tokens, @rest) {
+    method do_render($context, $tokens) {
         return Dumper($tokens);
     }
 

File lib/Floop/View/TemplateToolkit.pm

 
     }
 
-    method do_render($context, $tokens = {}, $args = {}) {
+    method do_render($context, $tokens, $args = {}) {
 
         my $output = '';
         my $content = '';