Hello

The following app

<pre>
#!/usr/bin/env perl
use Mojolicious::Lite;

# Documentation browser under "/perldoc"
plugin 'PODRenderer';

get '/' => sub {
  my $c = shift;
  $c->render( 'index' );
};

app->start;
__DATA__

@@ index.html.ep
%=  include inline => '<%= 1 + 1 %>'
</pre>

fails with error I cannot understand

[Thu May  4 12:22:10 2017] [error] Can't find string terminator "'" 
anywhere before EOF at template index.html.ep from DATA section line 1.
1: %=  include inline => '<%= 1 + 1 %>'

When I replace <%= %> with any static data, everything works fine. <%= %> 
code moved to non-inline template works fine. Is it impossible to use 
inline with code?...

-- 
You received this message because you are subscribed to the Google Groups 
"Mojolicious" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To post to this group, send email to [email protected].
Visit this group at https://groups.google.com/group/mojolicious.
For more options, visit https://groups.google.com/d/optout.

Reply via email to