File: EmbeddedTestApp.pm

package info (click to toggle)
libmojolicious-perl 7.21%2Bdfsg-1
  • links: PTS, VCS
  • area: main
  • in suites: stretch
  • size: 3,432 kB
  • ctags: 1,253
  • sloc: perl: 11,603; makefile: 10
file content (16 lines) | stat: -rw-r--r-- 203 bytes parent folder | download | duplicates (8)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
package EmbeddedTestApp;
use Mojolicious::Lite;

plugin "JSONConfig";

get '/works';

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

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

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