Builder for viral web "games".
#!/usr/bin/env perl
use Mojolicious::Lite -signatures;
plugin ViralGiral => {
data_filename => '/path/to/storage_file.data', # default: ./VG_data
prefix => 'foo', # default: 'vg'
introspection => 1, # default: undef
};
# Viral "games" routes generated.
# ViralGiral::Data helper available.
get '/inspect_entity/:uuid' => sub ($c) {
my $e = $c->viralgiral_data->get_entity($c->param('uuid'));
$c->render(text => $c->dumper($e));
};
app->start;
Module | Version |
---|---|
Clone | 0.39 |
EventStore::Tiny | 0.6 |
Mojolicious | 7.93 |
UUID::Tiny | 1.04 |
Test::Exception (Tests only) |
0.43 |
Copyright (c) 2018-2019 Mirko Westermeier (@memowe, mirko@westermeier.de)
Released under the MIT (X11) license. See LICENSE.txt for details.