| 1 | package WWW::MenuGrinder::Plugin::NullOutput; | ||
| 2 | our $VERSION = '0.01_01'; | ||
| 3 | |||
| 4 | |||
| 5 | # ABSTRACT: WWW::MenuGrinder plugin that outputs the menu structure unchanged. | ||
| 6 | |||
| 7 | use Moose; | ||
| 8 | |||
| 9 | with 'WWW::MenuGrinder::Role::Output'; | ||
| 10 | |||
| 11 | sub output { | ||
| 12 | my ($self, $menu) = @_; | ||
| 13 | |||
| 14 | return $menu; | ||
| 15 | } | ||
| 16 | |||
| 17 | no Moose; | ||
| 18 | 1; | ||
| 19 | |||
| 20 | |||
| 21 | __END__ | ||
| 22 | =head1 NAME | ||
| 23 | |||
| 24 | WWW::MenuGrinder::Plugin::NullOutput - WWW::MenuGrinder plugin that outputs the menu structure unchanged. | ||
| 25 | |||
| 26 | =head1 VERSION | ||
| 27 | |||
| 28 | version 0.01_01 | ||
| 29 | |||
| 30 | =head1 DESCRIPTION | ||
| 31 | |||
| 32 | C<WWW::MenuGrinder::Plugin::NullOutput> is a plugin for C<WWW::MenuGrinder>. You | ||
| 33 | should not use it directly, but include it in the C<plugins> section of a | ||
| 34 | C<WWW::MenuGrinder> config. | ||
| 35 | |||
| 36 | This is an output plugin that returns the menu structure as used by | ||
| 37 | C<WWW::MenuGrinder> plugins -- a tree of hashes representing menu items. This | ||
| 38 | format is suitable for passing to templating systems such as Template Toolkit or | ||
| 39 | Petal, as well as further processing in Perl. | ||
| 40 | |||
| 41 | =head1 AUTHOR | ||
| 42 | |||
| 43 | Andrew Rodland <andrew@hbslabs.com> | ||
| 44 | |||
| 45 | =head1 COPYRIGHT AND LICENSE | ||
| 46 | |||
| 47 | This software is copyright (c) 2009 by HBS Labs, LLC.. | ||
| 48 | |||
| 49 | This is free software; you can redistribute it and/or modify it under | ||
| 50 | the same terms as perl itself. | ||
| 51 |