treebird/perl/chat.pm
nekobit 19b19b900b Chat
FossilOrigin-Name: 7129d3c344032bab229fdc356df7522608a95af3696d92d22ec8f40d557c5734
2022-08-06 05:06:27 +00:00

35 lines
549 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'});
}