Templates
Petal
framework.conf
<TemplateOptions>
default_type = Petal
</TemplateOptions>
app.pm
sub show_balance {
my $self = shift;
my $bal = $account->get_balance;
$self->template->fill({
balance => $bal,
});
}
show_balance.xhtml
<html xmlns:tal="http://p..."> Your balance is: <span tal:replace="balance"> xxx </span>