e Catalyst::Plugin::Snippets;
use strict;
use warnings;
use MRO::Compat;
BEGIN { eval { require JSON::Syck } }
our $VERSION = "0.03";
sub setup {
my $app = shift;
my $ret = $app->maybe::ne
n",
allow_refs => 1,
use_session_id => 0,
json_content_type => "application/javascript+json",
content_type => "text/plain",
%{ $app->config->{sni
ponse->body($body);
}
sub _send_snippet_json {
my ( $c, $options, $value ) = @_;
$c->_send_snippet(
$options->{json_content_type},
JSON::Syck::Dump($value),
);
}
sub _sen