Skip to content

Commit

Permalink
create the template too
Browse files Browse the repository at this point in the history
  • Loading branch information
kraih committed Mar 21, 2016
1 parent 0ac1f6f commit b628081
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion lib/Mojolicious/Guides/Tutorial.pod
Expand Up @@ -680,7 +680,12 @@ L<Mojolicious::Command::get>.
=head2 External templates

External templates will be searched by the renderer in a C<templates> directory
if it exists and have a higher precedence than those in the C<DATA> section.
if it exists.

$ mkdir -p templates/foo
$ echo 'Hello World!' > templates/foo/bar.html.ep

They have a higher precedence than templates in the C<DATA> section.

use Mojolicious::Lite;

Expand Down

0 comments on commit b628081

Please sign in to comment.