Skip to content

Commit

Permalink
new UTF-8 inline template example
Browse files Browse the repository at this point in the history
  • Loading branch information
kraih committed Dec 19, 2012
1 parent 34d8bfa commit 9526ba6
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 0 deletions.
1 change: 1 addition & 0 deletions Changes
Expand Up @@ -12,6 +12,7 @@
- Added time_field helper to Mojolicious::Plugin::TagHelpers.
- Added url_field helper to Mojolicious::Plugin::TagHelpers.
- Added week_field helper to Mojolicious::Plugin::TagHelpers.
- Improved Mojo::Base to use utf8.
- Improved documentation.

3.68 2012-12-16
Expand Down
13 changes: 13 additions & 0 deletions lib/Mojolicious/Guides/Rendering.pod
Expand Up @@ -835,6 +835,19 @@ be easily changed.

1;

All templates from the C<DATA> section are bound to the encoding of the Perl
script.

use Mojolicious::Lite;

get '/heart';

app->start;

__DATA__
@@ heart.html.ep
I ♥ Mojolicious!

=head2 Base64 encoded DATA files

Base64 encoded static files such as images can be easily stored in the C<DATA>
Expand Down

0 comments on commit 9526ba6

Please sign in to comment.