NAME
Articulate::Serialisation - transform a data structure into user-facing output.
DESCRIPTION
use Articulate::Serialisation;
my $html = serialisation->serialise($response_object);
Go through all the defined serialisers and have them attempt to serialise the response object. The first defined result will be returned. The result be of any data type, although in practice the purpose is to use a string.
Provides a serialisation function which creates an instance of this class.
FUNCTION
serialisers
This is an arrayref of serialisers, each of whom should provide serialise functions.
FUNCTION
serialise
my $html = $serialisation->serialise($response_object);
Sends to each of the serialisers
in turn. If any of them return a defined value, returns that value immediately. Otherwise, returns undef
.