Tiwlayoutmgrhtml, tiwtemplateprocessorhtml belong to the page-level template, if you want to the entire site unified template, of course, use the main template.
Tiwtemplateprocessorhtml can set the page-level main template through its Mastertemplate property, which can implement template nesting, but that doesn't make much sense.
The full-station master template we want to use is set by the Mastertemplate property of the Iwservercontroller (Servercontroller unit).
Setting method: Iwservercontroller.mastertemplate: = ' xxx.html '; Its default path is still iwservercontroller.templatedir.
The page format of the main template is as follows:
$body//This tag is used to invoke individual pages, and if not, all pages will only display the contents of the main template
//Contents
of the main template {% of the control name of a
page}//The control of a page can be inserted directly from the main template (if
that page has one) </body>