App-HistHub
view release on metacpan or search on metacpan
inc/Spiffy.pm view on Meta::CPAN
my $stack_frame = 0;
my $dump = 'yaml';
my $bases_map = {};
sub WWW; sub XXX; sub YYY; sub ZZZ;
# This line is here to convince "autouse" into believing we are autousable.
sub can {
($_[1] eq 'import' and caller()->isa('autouse'))
? \&Exporter::import # pacify autouse's equality test
: $_[0]->SUPER::can($_[1]) # normal case
}
# TODO
#
# Exported functions like field and super should be hidden so as not to
# be confused with methods that can be inherited.
#
sub new {
my $class = shift;
lib/App/HistHub/Web/View/JSON.pm view on Meta::CPAN
use JSON::XS ();
__PACKAGE__->config(
allow_callback => 0,
expose_stash => 'json',
no_x_json_header => 1,
);
sub new {
my $self = shift->SUPER::new(@_);
$self->{encoder} = JSON::XS->new->latin1;
$self;
}
sub encode_json {
my ($self, $c, $data) = @_;
$self->{encoder}->encode($data);
}
=head1 NAME
( run in 1.066 second using v1.01-cache-2.11-cpan-49f99fa48dc )