Open toddr opened 1 year ago
Technically the only code needed for a CGI script would be:
use Dancer2;
use Plack::Loader;
get '/' => sub { "Hello World!" };
Plack::Loader->auto->run(main->to_app);
The rest is how to embed templates in the DATA block.
I would think either a new example app or the cookbook would make for good places to put this. I am open to suggestions!
I think it would work well in a Cookbook. @toddr interested in picking this up?
I worked with @xsawyerx today and we figured out how to write a Dancer2 app in CGI. We feel like it should be documented but we're not sure where: