File: EmbeddedTestApp.pm

package info (click to toggle)
libmojolicious-perl 2.98%2Bdfsg-2
  • links: PTS, VCS
  • area: main
  • in suites: wheezy
  • size: 2,968 kB
  • sloc: perl: 10,178; sh: 48; makefile: 8
file content (17 lines) | stat: -rw-r--r-- 255 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
package EmbeddedTestApp;
use Mojolicious::Lite;

plugin "JSONConfig";

# "But you're better than normal, you're abnormal."
get '/works';

get '/works/too' => 'too';

1;
__DATA__
@@ works.html.ep
It is <%= $name %>!

@@ too.html.ep
It <%= config->{it} %>!