Yukki::Web::Plugin - base class for Yukki plugins
version 0.121790
package MyPlugins::LowerCase; use 5.12.1; use Moose; extends 'Yukki::Web::Plugin'; has format_helpers => ( is => 'ro', isa => 'HashRef[CodeRef]', default => sub { +{ 'lc' => \&lc_helper, } }, ); with 'Yukki::Web::Plugin::Role::FormatHelper'; sub lc_helper { my ($params) = @_; return lc $params->{arg}; }
This is the base class for Yukki plugins. It doesn't do much but allow your plugin access to the application singleton and its configuration. For your plugin to actually do something, you must implement a plugin role. See these roles for details:
Yukki::Web::Plugin::Role::Formatter. Formats a file for output as HTML.
Yukki::Web::Plugin::Role::FormatHelper. This gives you the ability to create quick helpers in your yukkitext using the {{helper:...}} notation.
{{helper:...}}
This is the Yukki::Web singleton. All the methods required in Yukki::Role::App will be delegated.
Andrew Sterling Hanenkamp <hanenkamp@cpan.org>
This software is copyright (c) 2012 by Qubling Software LLC.
This is free software; you can redistribute it and/or modify it under the same terms as the Perl 5 programming language system itself.
To install Yukki, copy and paste the appropriate command in to your terminal.
cpanm
cpanm Yukki
CPAN shell
perl -MCPAN -e shell install Yukki
For more information on module installation, please visit the detailed CPAN module installation guide.