Advertisement
Guest User

Untitled

a guest
Jul 10th, 2014
249
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Perl 0.39 KB | None | 0 0
  1. # cto.conf
  2. {
  3.     WFHost => 'http://10.4.33.117/thinclient/MyService.asmx',
  4. }
  5.  
  6. # helpers
  7. package Cto::Helpers;
  8. use base 'Mojolicious::Plugin';
  9. use Mojolicious::Plugin::Config;
  10.  
  11. sub register {
  12. $app->helper(
  13.         WFrequest => sub {
  14.             my ($self, $method, $body) = @_;
  15.             my $config = $self->plugin('Config');
  16.  
  17.             my $result = {};
  18.             my $wf_url = $config->{'WFHost'};
  19.             ...
  20.         }
  21.     );
  22. }
  23. 1;
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement