commit | 5d1ffb419806a738ee58276edff2132c35bda00d | [log] [tgz] |
---|---|---|
author | Nils Diewald <nils@diewald-online.de> | Wed May 21 17:45:34 2014 +0000 |
committer | Nils Diewald <nils@diewald-online.de> | Wed May 21 17:45:34 2014 +0000 |
tree | 10deaab2c17d329f464c9ebb6d62f32bfa9790e2 |
Slim frontend for API and serialization tests
diff --git a/lib/Korap/Example.pm b/lib/Korap/Example.pm new file mode 100644 index 0000000..58fbd8b --- /dev/null +++ b/lib/Korap/Example.pm
@@ -0,0 +1,12 @@ +package Korap::Example; +use Mojo::Base 'Mojolicious::Controller'; + +# This action will render a template +sub welcome { + my $self = shift; + + # Render template "example/welcome.html.ep" with message + $self->render(msg => 'Welcome to the Mojolicious real-time web framework!'); +} + +1;