I'm not familiar with LazWeb. (Nor am I familiar with "psd's".) However, I believe there are at least a couple ways to program FCGI with Free Pascal. Here's a very simple FCGI app that can be compiled with either FPC or Delphi and runs on either a Web server or standalone with an embedded Indy Web server if WebServer is defined:
program DashcodeTest;
uses
{$IFNDEF WebServer}
FCGIApp,
{$ELSE}
{$IFNDEF MSWINDOWS}
CThreads,
{$ENDIF}
IdExtHTTPServer,
{$ENDIF}
AppThread;
{$IFNDEF FPC}
{$IFNDEF WebServer}
{$APPTYPE CONSOLE}
{$ENDIF}
{$ENDIF}
const
AppTitle = 'Dashcode Test';
Port = 2014;
MaxIdleMinutes = 30;
begin
{$IFNDEF WebServer}
Application := TFCGIApplication.Create(AppTitle, TAppThread, Port, MaxIdleMinutes);
{$ELSE}
Application := TIdExtApplication.Create(AppTitle, TAppThread, 80, MaxIdleMinutes);
{$ENDIF}
Application.Run;
end.
unit AppThread;
interface
uses
FCGIApp;
type
TAppThread = class(TWebSession)
published
procedure Home; override;
end;
implementation
procedure TAppThread.Home;
begin
Response := 'document.getElementById("' + Query['Name'] + '").innerText = "Hello, again";';
end;
end.
This was a test of making an Ajax call, passing the name of a control (e.g. Name=text1) - app sends back Javascript that changes the control's text when eval-ed.
I used ExtPascal's FCGIApp unit.
Thanks.
-Phil