Skip to content

Commit

Permalink
mention that classes also need to be added during application startup
Browse files Browse the repository at this point in the history
  • Loading branch information
kraih committed Jul 6, 2015
1 parent 6a4f834 commit d3da566
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions lib/Mojolicious/Renderer.pm
Expand Up @@ -291,8 +291,8 @@ Renderer cache, defaults to a L<Mojo::Cache> object.
Classes to use for finding templates in C<DATA> sections with L<Mojo::Loader>,
first one has the highest precedence, defaults to C<main>. Only files with
exactly two extensions will be used, like C<index.html.ep>. Note that these
classes need to have already been loaded during application startup for
templates to be detected.
classes need to have already been loaded and added during application startup
for templates to be detected.
# Add another class with templates in DATA section
push @{$renderer->classes}, 'Mojolicious::Plugin::Fun';
Expand Down
4 changes: 2 additions & 2 deletions lib/Mojolicious/Static.pm
Expand Up @@ -178,8 +178,8 @@ L<Mojolicious::Static> implements the following attributes.
Classes to use for finding files in C<DATA> sections with L<Mojo::Loader>,
first one has the highest precedence, defaults to C<main>. Only files with
exactly one extension will be used, like C<index.html>. Note that these classes
need to have already been loaded during application startup for files to be
detected.
need to have already been loaded and added during application startup for files
to be detected.
# Add another class with static files in DATA section
push @{$static->classes}, 'Mojolicious::Plugin::Fun';
Expand Down

0 comments on commit d3da566

Please sign in to comment.