treebird/perl/chat.pm
nekobit 2609b8d54f Seperate notifications logic, fix perl modules
FossilOrigin-Name: 8dedd9a9e0ca9f982140de1e980be166d07e9d549eae5cb50115fc3a7a414ae6
2022-08-17 02:08:13 +00:00

36 lines
552 B
Perl

package chat;
use strict;
use warnings;
use Exporter 'import';
our @EXPORTS = qw( content_chats );
use template_helpers 'to_template';
sub construct_chat
{
my ($ssn, $data, $chat) = @_;
my %vars = (
prefix => '',
ssn => $ssn,
chat => $chat,
);
to_template(\%vars, \$data->{'chat.tt'});
}
sub content_chats
{
my ($ssn, $data, $chats) = @_;
my %vars = (
prefix => '',
ssn => $ssn,
chats => $chats,
);
to_template(\%vars, \$data->{'content_chats.tt'});
}
1;