Skip to content

Instantly share code, notes, and snippets.

Created February 25, 2015 19:04
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save anonymous/e808b8f985f7c5f9cf7c to your computer and use it in GitHub Desktop.
Save anonymous/e808b8f985f7c5f9cf7c to your computer and use it in GitHub Desktop.
$ MOJO_TEMPLATE_DEBUG=1 perl -Mojo -E 'a("/" => { inline => q!<%= (localtime)[5]+1900 %>!})->start' get /
-- Code for inline template "c284df2f06c8e2e39b944ac01c4f5045"
#line 1 "inline template c284df2f06c8e2e39b944ac01c4f5045"
package Mojo::Template::Sandbox::8633d46fb7796d5336b098c41bb75d80; use Mojo::Base -strict; sub { my $_O = ''; my $self = my $c = shift; my $_S = $c->stash; {; { $_O .= _escape scalar (localtime)[5]+1900 ;$_O .= "\n";
#line 1 "inline template c284df2f06c8e2e39b944ac01c4f5045"
}; } $_O };
...
syntax error at inline template c284df2f06c8e2e39b944ac01c4f5045 line 1, near ")["
...
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment