Skip to content

Instantly share code, notes, and snippets.

Created July 29, 2010 13:48
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/498162 to your computer and use it in GitHub Desktop.
Save anonymous/498162 to your computer and use it in GitHub Desktop.
use Mojolicious::Lite;
get '/' => sub {
my $self = shift;
my $steps = $self->render_steps(
'template' => 'test', 'format' => 'html');
$steps->to('marker_1');
print '<p>foobar</p>';
$steps->to;
} => 'index';
app->start('cgi');
__DATA__
@@ test.html.ep
<!DOCTYPE html>
<html>
<head>
<title>Test!</title>
</head>
<body>
<%= step 'marker_1' %>
</body>
</html>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment