--- templates/example/welcome.html.epl 2009/06/16 22:15:34 6 +++ templates/example/welcome.html.epl 2009/06/17 11:28:12 7 @@ -8,24 +8,4 @@ here to move forward to a static page. -% my $hostname = $self->param('hostname'); - -
- - -
- -

<%= $hostname %>

- -% foreach my $cmd ( @{ $self->stash('commands') } ) { -% if ( $cmd =~ s{^(#+)\s*}{} ) { -% my $l = length($1) + 1; -%= "$cmd" -% } else { -% my $run = $hostname ? "ssh $hostname $cmd" : $cmd; -<%= $cmd %>
-
<%= `$run` %>
-% } -% } +<%= $self->render_partial( template => 'commands' ); %>