{
warn "Error: $@\n";
}
my ( $jsons, $keywords_used ) = _make_json_center( $instructions );
my $json = "[\n" . join( ",\n", @{ $jsons } ) . "\n]\n";
$self->deparsed( Bigtop:
backends( $tree );
$self->template_disable( 1 );
return $self->stash->controller->data( $json . $self->deparsed );
}
sub do_move_block_after {
my $self = shift;
my $mover = shift;
# make jason here
my ( $jsons, $keywords_used ) = _make_json_center( $result );
my $json = "[\n" . join( ",\n", @{ $jsons } ) . "\n]\n";
$already_c
You have been warned.
package Kids::GEN::Child;
use strict;
use warnings;
use base 'Kids';
use JSON;
use Gantry::Utils::TablePerms;
use Kids::Model::child qw(
$CHILD
);
#---------------------
tions => $perm_obj->real_row_options( $row ),
}
);
}
if ( $params->{ json } ) {
$self->template_disable( 1 );
my $obj = {
headings => $
rows => $retval->{ rows },
};
my $json = to_json( $obj, { allow_blessed => 1 } );
return( $json );
}
$self->stash->view->data( $retval );
} # END do_ma
en warned.
package GENKids;
use strict;
use warnings;
use Gantry qw{ -TemplateEngine=TT };
use JSON;
use Gantry::Utils::TablePerms;
our @ISA = qw( Gantry );
use Kids::Model;
sub schema_base_clas
ntry[% IF template_engine %] qw{ -TemplateEngine=[% template_engine %] }[% END %];
[% END %]
use JSON;
use Gantry::Utils::TablePerms;
our @ISA = qw( Gantry );
[% FOREACH module IN external_modules
[% plugins +%]
};
our @ISA = qw( [% app_name %] );
use JSON;
use Gantry::Utils::TablePerms;
[% ELSE %]
use base '[% app_name %]';
use JSON;
use Gantry::Utils::TablePerms;
[% END %]
[% child_outpu
tions => $perm_obj->real_row_options( $row ),
}
);
}
if ( $params->{ json } ) {
$self->template_disable( 1 );
my $obj = {
headings => $