treebird/perl/emojis.pm
nekobit d033f363c3 Emoji picker and refactoring bullshit still
FossilOrigin-Name: 8ac12640e4940972a2528fb690e7a1736208275dcb053edc9bf418642a82867c
2022-08-20 03:32:29 +00:00

33 lines
523 B
Perl

package emojis;
use strict;
use warnings;
use Data::Dumper;
use Exporter 'import';
our @EXPORT = qw( generate_emoji );
use template_helpers 'to_template';
sub generate_emoji
{
my ($ssn, $data, $status_id, $emoji) = @_;
my %vars = (
prefix => '',
ssn => $ssn,
status_id => $status_id,
emoji => $emoji
);
to_template(\%vars, \$data->{'emoji.tt'});
}
sub emoji_picker
{
my ($ssn, $data, $emojis) = @_;
to_template(\%vars, \$data->{'emoji_picker.tt'});
}
1;