I have used the Plugin Wizard to create the following CGI file to display a template sample.html. I added a file: zzz.cgi, and edited it in the wizard before installing. I am still getting a 500 IS error!
=======================
#Code to display "sample.html" placed in templates directory
use strict;
use lib 'MY ADMIN PATH';
use Links qw/$IN $DB $CFG/;
use Links::SiteHTML;
use Links::Plugins;
use CGI::Carp qw(fatalsToBrowser);
local $SIG{__DIE__} = \&Links::fatal;
Links::init('MY ADMIN PATH');
&show_form;
sub show_form {
print $IN->header();
print Links::SiteHTML::display('sample');
}
=======================
#Code to display "sample.html" placed in templates directory
use strict;
use lib 'MY ADMIN PATH';
use Links qw/$IN $DB $CFG/;
use Links::SiteHTML;
use Links::Plugins;
use CGI::Carp qw(fatalsToBrowser);
local $SIG{__DIE__} = \&Links::fatal;
Links::init('MY ADMIN PATH');
&show_form;
sub show_form {
print $IN->header();
print Links::SiteHTML::display('sample');
}