NAME
Mojolicious::Plugin::Mandel - A plugin for mango document model called Mandel.
VERSION
version 0.1.1
SYNOPSIS
Mojolicious::Lite application:
plugin Mandel => {
  a => {
    "Mandel::A" => "mongodb://localhost/test",
    "Mandel::B" => "mongodb://localhost/btest"
  },
};
a is the name of mandel that will be prefix of mandel documents, Mandel::A is the Mandel model name, the value mongodb://localhost/test is the MongoDB string URI.
Then you can call mandel, mandel_document in controller.
# /
any '/' => sub {
  my $c = shift;
  my $coll = $c->mandel("a.document");
  # or
  $coll = $c->mandel("document");
  $c->render(text => $coll->name);
};
DESCRIPTION
Mojolicious::Plugin::Mandel is a Model (M in MVC architecture) for Mojolicious applications, based on the Mandel and Mango.
HELPERS
The plugin generate two helpers:
mandel
Param: require one argument which should be one of the mandel_documents.
mandel_documents
No params.
Return: an array of contained mandel document names.
ATTRIBUTES
mandels
Containing mandel document objects.
mandel_documents
Containing the mandel document names.
METHODS
register
The method to register plugin.
AUTHOR
Huo Linhe <huolinhe@berrygenomics.com>
COPYRIGHT AND LICENSE
This software is copyright (c) 2015 by Berry Genomics.
This is free software; you can redistribute it and/or modify it under the same terms as the Perl 5 programming language system itself.