Skip to content

Commit

Permalink
mention that classes need to be loaded (closes #810)
Browse files Browse the repository at this point in the history
  • Loading branch information
kraih committed Jun 11, 2015
1 parent d03a28b commit 4f9bcd2
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 2 deletions.
4 changes: 3 additions & 1 deletion lib/Mojolicious/Renderer.pm
Expand Up @@ -290,7 +290,9 @@ 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>.
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.
# Add another class with templates in DATA section
push @{$renderer->classes}, 'Mojolicious::Plugin::Fun';
Expand Down
4 changes: 3 additions & 1 deletion lib/Mojolicious/Static.pm
Expand Up @@ -177,7 +177,9 @@ 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>.
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.
# Add another class with static files in DATA section
push @{$static->classes}, 'Mojolicious::Plugin::Fun';
Expand Down

0 comments on commit 4f9bcd2

Please sign in to comment.