From Code to Community: Sponsoring The Perl and Raku Conference 2025 Learn more
1234567891011121314151617 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.epIt is <%= $name %>!@@ too.html.epIt <%= config->{it} %>!
package
EmbeddedTestApp;
use
Mojolicious::Lite;
plugin
"JSONConfig"
;
# "But you're better than normal, you're abnormal."
get
'/works'
'/works/too'
=>
'too'
1;
__DATA__
@@ works.html.ep
It is <%= $name %>!
@@ too.html.ep
It <%= config->{it} %>!