treebird/perl/account.pm
nekobit 6ea891ae8b Perlify relationship
FossilOrigin-Name: 08437db1c8a6eae47804c4687a67c5522b2b98b7464cc089229bf07fbbd8880a
2022-08-05 04:01:03 +00:00

36 lines
690 B
Perl

package account;
use strict;
use warnings;
use Exporter 'import';
our @EXPORT = qw( account content_statuses );
use template_helpers 'to_template';
sub generate_account
{
my ($ssn, $data, $acct, $content) = @_;
my %vars = (
prefix => '',
ssn => $ssn,
content => $content,
acct => $acct,
);
to_template(\%vars, \$data->{'account.tt'});
}
sub content_statuses
{
my ($ssn, $data, $acct, $relationships, $statuses) = @_;
my %vars = (
prefix => '',
ssn => $ssn,
acct => $acct,
);
generate_account($ssn, $data, $acct, $relationships, to_template(\%vars, \$data->{'account_statuses.tt'}));
}