Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
there can now be multiple DATA sections and "templates" directories
  • Loading branch information
kraih committed Nov 21, 2015
1 parent bc8ea4e commit ff23a45
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions lib/Mojolicious/Guides/Rendering.pod
Expand Up @@ -1388,13 +1388,13 @@ called.
my ($renderer, $c, $output, $options) = @_;

# Check for one-time use inline template
my $inline = $options->{inline};
my $inline_template = $options->{inline};

# Check for absolute template path
my $path = $renderer->template_path($options);
# Check for appropriate template in "templates" directories
my $template_path = $renderer->template_path($options);

# Check for appropriate template in DATA section
my $data = $renderer->get_data_template($options);
# Check for appropriate template in DATA sections
my $data_template = $renderer->get_data_template($options);

# This part is up to you and your template system :)
...
Expand Down

0 comments on commit ff23a45

Please sign in to comment.