treebird/perl/notifications.pm
nekobit 3c4a5970e8 Lists boilerplate, Fix perl/fcgiapp header conflict warnings
FossilOrigin-Name: a04dd4a4b737e28845a422293b10f72335f55aea72ae5bcd20eb01f8842b0dc3
2022-08-05 19:45:35 +00:00

34 lines
634 B
Perl

package notifications;
use strict;
use warnings;
use Exporter 'import';
our @EXPORT = qw( generate_notification_compact content_notifications );
use template_helpers 'to_template';
sub generate_notification_compact
{
my ($ssn, $data, $notif) = @_;
my %vars = (
prefix => '',
ssn => $ssn,
notif => $notif
);
to_template(\%vars, \$data->{'notif_compact.tt'});
}
sub content_notifications
{
my ($ssn, $data, $notifs) = @_;
my %vars = (
prefix => '',
ssn=> $ssn,
notifs => $notifs
);
to_template(\%vars, \$data->{'content_notifs.tt'});
}