Thanks, i wanted to write in common config, because i have many plugins.
>
вторник, 28 октября 2014 г., 22:30:15 UTC+3 пользователь Alex Alex написал:
>
> In that example all after 'captcha' is simply config example
>
> Just add this to the startup method in YourApp.pm
>
> sub startup {
> my $app = shift;
>
> my $config = {
> session_name => 'captcha_string',
> out => {force => 'jpeg'},
> # ... skipped
> };
>
> $app->plugin('Captcha', $config);
> # .. rest
> }
>
>
>
> Hello, some plugins for mojolicious has such construction:
>
>
> $self->plugin(
> 'captcha',
> {
> session_name => 'captcha_string',
> out => {force => 'jpeg'},
> particle => [0,0],
> create => [qw/normal rect/],
> new {
> rnd_data => [0...9, 'A'...'Z'],
> width => 80,
> height => 30,
> lines => 7,
> �
> � gd_font => 'giant',
> }
> }
> );
>
> How can i use this in my project(not lite version)? Thanks.
>
>
>
>
>
>
>
> --
> You received this message because you are subscribed to the Google Groups
> "Mojolicious" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to [email protected] <javascript:>.
> To post to this group, send email to [email protected]
> <javascript:>.
> Visit this group at http://groups.google.com/group/mojolicious.
> For more options, visit https://groups.google.com/d/optout.
>
>
>
--
You received this message because you are subscribed to the Google Groups
"Mojolicious" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
To post to this group, send email to [email protected].
Visit this group at http://groups.google.com/group/mojolicious.
For more options, visit https://groups.google.com/d/optout.