- or download this
get '/' => sub {
my $c = shift;
...
$c->render( template => 'result', c => $result );
};
- or download this
@@ index.html.ep
...
<input name="option" size="40" type="text"></input><br>
<br><input type="submit" name="submit" value="submit"><br>
</form>
- or download this
@@ result.html.ep
%layout 'default';
...
<%= $c %>
</pre>
</div>