d2Inao::Builder;
use utf8;
use strict;
use warnings;
use Class::Accessor::Fast qw/antlers/;
use JSON;
use Path::Tiny;
has dispatch_table => ( is => 'rw' );
has before_filter_config => ( is => 'rw
ult};
}
sub load_filter_config {
my ($self, $path) = @_;
my $json = path($path)->slurp;
my $config = decode_json $json;
for (qw/before_filter after_filter/) {
if ($config->{$_
Md2Inao') }) {
if (-d $dir) {
$self->load_filter_config(path($dir, 'id_filter.json'));
last;
}
}
return $self;
}
sub prepend_metadata {
my ($self,