Open KES777 opened 5 years ago
An application allow users to download or view invoice by clicking a button. But also we want the command which will loop users and send invoices
We have two ways to render templates:
First:
$c->stash( template => 'invoice' ) while( my $user = $users->next ) { $c->render_to_string( user => $user ); }
Second:
while( my $user = $users->next ) { $c->render_to_string( 'invoice', user => $user ); }
Without this change first case does now work. It renders only once.
None
Summary
An application allow users to download or view invoice by clicking a button. But also we want the command which will loop users and send invoices
Motivation
We have two ways to render templates:
First:
Second:
Without this change first case does now work. It renders only once.
References
None