バグ?使い方悪い?
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
: around body -> { | |
<!doctype html><html> | |
<head><title>Welcome</title></head> | |
<body> | |
: super | |
</body> | |
</html> | |
: } |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This page was generated from the template "templates/exception.html.ep". | |
Oops: Unknown opcode 'super' on [5] at /Users/shibazaki/perl5/perlbrew/perls/perl-5.8.9/lib/site_perl/5.8.9/darwin-2level/Text/Xslate.pm line 288. | |
283: my $cache_mtime; | |
284: if($self->{cache} < 2) { | |
285: $cache_mtime = $fi->{cache_mtime} || 0; | |
286: } | |
287: | |
288: $self->_assemble($asm, $file, $fi->{fullpath}, $fi->{cachepath}, $cache_mtime); | |
289: return $asm; | |
290: } | |
291: | |
292: sub slurp { | |
293: my($self, $fullpath) = @_; | |
{ | |
'mojo.session' => {}, | |
'status' => 500, | |
'mojo.exception' => 1, | |
'mojo.started' => [ | |
1295525895, | |
787213 | |
], | |
'controller' => 'example', | |
'mojo.content' => {}, | |
'layout' => undef, | |
'id' => 1, | |
'extends' => undef, | |
'info' => [ | |
'Perl', | |
'5.008009 (darwin)', | |
'Mojolicious', | |
'1.01 (Snowflake)', | |
'Home', | |
'script/..', | |
'Include', | |
'[ | |
\'script/../lib\', | |
\'script/lib\', | |
\'/Users/shibazaki/perl5/perlbrew/perls/perl-5.8.9/lib/5.8.9/darwin-2level\', | |
\'/Users/shibazaki/perl5/perlbrew/perls/perl-5.8.9/lib/5.8.9\', | |
\'/Users/shibazaki/perl5/perlbrew/perls/perl-5.8.9/lib/site_perl/5.8.9/darwin-2level\', | |
\'/Users/shibazaki/perl5/perlbrew/perls/perl-5.8.9/lib/site_perl/5.8.9\', | |
\'.\' | |
] | |
', | |
'PID', | |
13602, | |
'Name', | |
'/Users/shibazaki/perl5/perlbrew/perls/perl-5.8.9/bin/plackup', | |
'Executable', | |
'/Users/shibazaki/perl5/perlbrew/perls/perl-5.8.9/bin/perl', | |
'Time', | |
'Thu Jan 20 21:18:15 2011' | |
], | |
'request' => [ | |
'Method', | |
'GET', | |
'Path', | |
'/example/welcome', | |
'Base', | |
'http://local.hatena.ne.jp:5000', | |
'Parameters', | |
'{} | |
', | |
'Stash', | |
'{ | |
\'controller\' => \'example\', | |
\'action\' => \'welcome\', | |
\'id\' => 1, | |
\'message\' => \'Welcome to the Mojolicious Web Framework!\' | |
} | |
', | |
'Session', | |
'{} | |
', | |
'Version', | |
'1.1' | |
], | |
'mojo.captures' => { | |
'controller' => 'example', | |
'action' => 'welcome', | |
'id' => 1 | |
}, | |
'message' => 'Welcome to the Mojolicious Web Framework!', | |
'format' => 'html', | |
'handler' => undef, | |
'action' => 'welcome' | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
: cascade with layouts::base | |
: block body -> { | |
<h2><: $message :></h2> | |
This page was generated from the template | |
: } |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment