Permalink
Browse files

Change button interface to be more consistent

  • Loading branch information...
1 parent 47cdb2f commit b2f1dd29c2290d54fa352093168bc1fb69f617a9 @perlpilot committed Dec 7, 2011
Showing with 2 additions and 2 deletions.
  1. +2 −2 lib/Dancer/Plugin/TTHelpers.pm
View
4 lib/Dancer/Plugin/TTHelpers.pm
@@ -224,8 +224,8 @@ hook 'before_template' => sub {
$tokens->{button} = sub {
my $obj = shift if blessed $_[0];
my $attributes = &process_attributes;
- my ($value) = @_;
- return qq(<input type="button" value="$value" $attributes />);
+ my ($name, $value) = @_;
+ return qq(<input type="button" name="$name" value="$value" $attributes />);
};
$tokens->{hidden} = sub {

0 comments on commit b2f1dd2

Please sign in to comment.