MVC Development

Model - View - Controller

MyAccount.pm
sub balance {...}



app.pm
 my $balance = $account->balance;
 $self->template->fill({
     balance => $balance
 });



template.html
Your current balance is:
<TMPL_VAR NAME="balance">