Permalink
Browse files

Fix one-arg form of template()

  • Loading branch information...
1 parent 2b2d304 commit 4a2ede3adcace36495952ef9b0132074847aa4a9 @tadzik tadzik committed Jan 6, 2012
Showing with 1 addition and 1 deletion.
  1. +1 −1 lib/Bailador.pm
View
@@ -54,7 +54,7 @@ sub status(Int $code) is export {
$current-response.code = $code;
}
-sub template(Str $tmpl, %params) is export {
+sub template(Str $tmpl, %params = {}) is export {
$template-engine.load("views/$tmpl");
return $template-engine.render(|%params);
}

0 comments on commit 4a2ede3

Please sign in to comment.