Hi,
is there something to have this include option from pas2js in TMS Web Core.
Ex :
{$R INCLUDED_TEMPLATE.html}
procedure MyProc();
var
aInfo : TResourceInfo; // Unknown from tms web Core
aElement : TJsElement;
aElName : String;
begin
// REPLACE MyHinner BY TEMPLATES
aElName := 'MyHinner ';
aElement := document.getElementById(aElName);
if (aElement <> null) then
begin
if GetResourceInfo('INCLUDED_TEMPLATE',aInfo) then aElement.innerHtml := aInfo.Data;
end;
end;
Thank's