Advertisement
Guest User

Controller... Prototype.pm

a guest
Dec 6th, 2014
165
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Perl 0.50 KB | None | 0 0
  1. package DemandMapper::Controller::Prototype;
  2. use Mojo::Base 'Mojolicious::Controller';
  3.  
  4. # This action will render a template
  5. sub heatmap_canvas {
  6.  
  7.   my $self = shift;
  8.  
  9.   # Render template "example/welcome.html.ep" with message
  10.   $self->render(msg => 'Welcome to the Mojolicious real-time web framework!');
  11.  
  12. }
  13.  
  14. sub index {
  15.  
  16.   my $self = shift;
  17.  
  18.   # Render template "example/welcome.html.ep" with message
  19.   $self->render(msg => 'Welcome to the Mojolicious real-time web framework!');
  20.  
  21. }
  22.  
  23.  
  24. 1;
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement