.dataprinter

Thu, 18 Feb 2016 20:31:46 -0500

author
Meredith Howard <mhoward@roomag.org>
date
Thu, 18 Feb 2016 20:31:46 -0500
changeset 260
52b31c74fe37
child 262
85dcaca3a0b0
permissions
-rw-r--r--

Add some helpful DDP filters

{
  filters => {
    'JSON::PP::Boolean' => sub { ${$_[0]} ? 'true': 'false'  },
    'Mojo::JSON::_Bool' => sub { ${$_[0]} ? 'true': 'false'  },
    'URI::http'         => sub { "URI<$_[0]>"  },
    'URI::https'        => sub { "URI<$_[0]>"  },
  }
};

mercurial