Mojolicious::Plugin::Toto

A simple tab and object based site structure
Download

Mojolicious::Plugin::Toto Ranking & Summary

Advertisement

  • Rating:
  • License:
  • Perl Artistic License
  • Publisher Name:
  • Brian Duggan
  • Publisher web site:

Mojolicious::Plugin::Toto Tags


Mojolicious::Plugin::Toto Description

A simple tab and object based site structure Mojolicious::Plugin::Toto is an implementation of a navigational structure called "toto": "tabs on this object" which is as follows :Given a collection of objects (e.g. beers, breweries, pubs), come up with two types of pages : - pages associated with one object (e.g. view, edit) - pages associated with zero or more than one object (e.g. search, browse)Then Toto refers to a screen with three types of tab lists : - a list of all the objects - a list of all the actions possible on one object - a list of all the actions possible on zero or multiple objectsAfter creating a structure, as in the synopsis, and starting a mojolicious app, there will be a site as well as sample code and sample objects.Actions in controller classes will be called automatically if they exist (e.g. "Beer::Pub::search()").A template for a given page may be in either of these two places : templates/$controller/$action.html.ep templates/$action.html.epdepending on whether it is generic, or specific to the controller.SYNOPSIS cat > ./Beer #!/usr/bin/env perl use Mojolicious::Lite; plugin 'toto' => path => "/toto", namespace => "Beer", menu => , many => }, brewery => { one => , many => }, pub => { one => , many => }, # $controller (object) => { one => , # many => ] ; app->start ./Beer daemon Requirements: · Perl


Mojolicious::Plugin::Toto Related Software