plate::Plugin::JSON::Moo;
our $AUTHORITY = 'cpan:JWRIGHT';
our $VERSION = '0.04';
=pod
=encoding utf8
=head1 NAME
Alt::Template::Plugin::JSON::Moo - Alternate Template::Plugin::JSON - using Moo
=
ALT_INSTALL=OVERWRITE cpanm Alt::Template::Plugin::JSON::Moo
[% USE JSON %]
=head1 DESCRIPTION
This is a modification of L<Template::Plugin::JSON>, switching it from using L<Moose> to
using L<Moo
> and L<Type::Tiny>. This allows for the use of the JSON Template plugin
without loading Moose or causing the Moosification of all your Moo classes and
roles.
=head1 BUGS
The use of L<namespace::cl
package #
Template::Plugin::JSON;
our $AUTHORITY = 'cpan:JWRIGHT';
our $ALT = 'Moo';
use Types::Standard ();
use Carp ();
use JSON ();
use Alt::Template::Plugin::JSON::Moo;
use Moo;
use namespa
ard::Object,
is => "ro",
weak_ref => 1,
);
has json_converter => (
isa => Types::Standard::Object,
is => "lazy",
lazy_build => 1,
);
has json_args => (
isa => Types::Standard::HashRef,
is
uses JSON/JSON::XS now";
}
my $args = ref $args[0] ? $args[0] : {};
return { %$args, context => $c, json_args => $args };
}
sub _build_json_converter {
my $self = shift;
my $json = JSON->new