Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- use Mojolicious::Lite;
- use utf8;
- use Data::Dumper;
- get '/' => sub {
- my $self = shift;
- my $config = do "my_config.txt";
- $self->render( config => Dumper $config );
- } => 'index';
- app->start('daemon');
- __DATA__
- @@ index.html.ep
- <html><head><meta content="text/html; charset=UTF-8" http-equiv="content-type"></head><body>
- %==stash 'config'
- </body></html>
- ############# myconfig.txt
- {
- name => 'testïng encóding',
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement