|
<< Click to Display Table of Contents >> Navigation: Telegram > 2022 > 08 > 13 > Telegram_2022-08-13T18 |
2022-08-13T18:34:16
other than that,, your IWTest2.html is not a template file. It's plain HTML file, but not a template.
If you want to display an HTML file in your IW application you just need to register the HTML mime type as a static file:
uses
IWMimeTypes;
procedure TIWServerController.IWServerControllerBaseConfig(Sender: TObject);
begin
// this is needed to actually serve HTML files (i.e. static content)
TIWMimeTypes.RegisterType('.html', MIME_HTML, True);
2022-08-13T18:35:21
This demo shows it (1 of the pages is a static html file)
type: link https://github.com/Atozed/IntraWeb/tree/master/15/Delphi/ContentHandlers
2022-08-13T18:35:38
which uses a content handler