Skip to content

Commit

Permalink
mention that it happens automatically
Browse files Browse the repository at this point in the history
  • Loading branch information
kraih committed Oct 28, 2015
1 parent 40f7458 commit 96c4350
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
4 changes: 2 additions & 2 deletions lib/Mojolicious/Renderer.pm
Expand Up @@ -288,8 +288,8 @@ 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 for
templates to be detected, these classes need to have already been loaded and
added before L</"warmup"> is called, which usually happens during application
startup.
added before L</"warmup"> is called, which usually happens automatically during
application startup.
# 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 @@ -179,7 +179,8 @@ 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 for files to
be detected, these classes need to have already been loaded and added before
L</"warmup"> is called, which usually happens during application startup.
L</"warmup"> is called, which usually happens automatically during application
startup.
# Add another class with static files in DATA section
push @{$static->classes}, 'Mojolicious::Plugin::Fun';
Expand Down

0 comments on commit 96c4350

Please sign in to comment.