NAME

Continuity - Continuation-based web-programming framework

SYNOPSIS

#!/usr/bin/perl

use strict;
use Continuity;

package Addnums;
use base 'Continuity::Application';

# --------------------------
# This is the important bit.
# --------------------------
sub main {
  my $self = shift;
  my $a = $self->getNum('Enter first number: ');
  my $b = $self->getNum('Enter second number: ');
  $self->disp(" Total of $a + $b is: " . ($a + $b));
  # Run again!
  $self->main();
}
  
sub getNum {
  my ($self, $msg) = @_;
  my $f = $self->disp(qq{
      $msg <input name="num">
      <input type=submit value="Enter"><br>
  });
  return $f->{'num'};
}

package main;

my $c = new Continuity(
  appname => 'Addnums',
  print_html_header => 1,
  print_form => 1,
);

$c->go();

DESCRIPTION

This is an alternative to existing web-programming frameworks. The purpose of a web-programming framework or toolkit is to speed and ease the development of web-based applications. They tend to aid in management of state and of control flow, often throwing in bonus hooks to common DB interfaces and templating systems. Continuity is such a framework, meant to be minimalist in nature. What sets this apart from the other frameworks is a single high-level programming abstraction which allows you to pretend your program is being continuously executing, rather than being re-started between each page display.

METHODS

$c = new Continuity(appname => 'Myapp')

Creates a new Continuity object, ready to manage your application's instances.

BUGS/LIMITATIONS

This module uses the Contize module to use fake continuations, and thus comes with all the limitations therein.

SEE ALSO

Contize, http://thelackthereof.org/wiki.pl/Continuity

AUTHOR

Brock Wilcox <awwaiid@thelackthereof.org>
http://thelackthereof.org/

COPYRIGHT

Copyright (c) 2004 Brock Wilcox <awwaiid@thelackthereof.org>. All rights
reserved.  This program is free software; you can redistribute it and/or
modify it under the same terms as Perl itself.