type (someEnum, andYeah);
const NUM = 1;
procedure WhatThe;
begin
write('Paste Bin? Or Pastie? What do you think a Pastie really is? See Logo.');
end;
function WhatIsPastie: boolean;
begin
write('ask a lady, or another person-a-ma-bob');
result:= true;
end;
program rapid; {$mode objfpc}{$H+}
uses
pwinit,
pwmain,
strwrap1,
htmw;
var
TopPanel: THtmCustomBox = (
position: cpAbsolute;
left: 0;
top: 2;
height: 0;
width: 96;
pad: 6;
HeightUnit: hmPixel;
WidthUnit: hmPercent;
bgcolor: 'gray';
PageAlign: caCenter;
border: cbNone;
zindex: 1;
text: '';
);
RightPanel: THtmPercentBox;
LeftPanel: THtmPercentBox;
ContentPanel: THtmPercentBox;
FootPanel: THtmPercentBox;
function: TemplateFileToString(fname: string): string;
begin
result:= StrLoadFile(fname);
result:= WebFormat(result);
end;
begin
SetVar('macro1' 'blue sky');
SetVar('macro2' 'green grass');
HtmBegin('Pascal Internet Program');
TopPanel.text:= TemplateFileToString('content1.tpl');
BoxOut(TopPanel);
HtmEnd;
end.
|