Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
mention which files are used
  • Loading branch information
kraih committed Feb 21, 2015
1 parent a7e03cd commit e6360a8
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
3 changes: 2 additions & 1 deletion lib/Mojolicious/Renderer.pm
Expand Up @@ -290,7 +290,8 @@ Renderer cache, defaults to a L<Mojo::Cache> object.
$renderer = $renderer->classes(['main']);
Classes to use for finding templates in C<DATA> sections with L<Mojo::Loader>,
first one has the highest precedence, defaults to C<main>.
first one has the highest precedence, defaults to C<main>. Only files with
exactly two extensions will be used, like C<index.html.ep>.
# Add another class with templates in DATA section
push @{$renderer->classes}, 'Mojolicious::Plugin::Fun';
Expand Down
3 changes: 2 additions & 1 deletion lib/Mojolicious/Static.pm
Expand Up @@ -176,7 +176,8 @@ L<Mojolicious::Static> implements the following attributes.
$static = $static->classes(['main']);
Classes to use for finding files in C<DATA> sections with L<Mojo::Loader>,
first one has the highest precedence, defaults to C<main>.
first one has the highest precedence, defaults to C<main>. Only files with
exactly one extension will be used, like C<index.html>.
# Add another class with static files in DATA section
push @{$static->classes}, 'Mojolicious::Plugin::Fun';
Expand Down

0 comments on commit e6360a8

Please sign in to comment.