COAST provides the composition of page elements by HTML-Template files.
[[#wd DisplayAnythingRenderer { /AnythingInfo { "<html>" " <head>" " <title>" " [[#wd Lookup PageTitle ]]" " </title>" " </head>" " <body background= imagedir/backgrnd.gif >" " [[#wd Lookup Photo ]]" " [[#wd Lookup Text1 ]]" " [[#wd Lookup Text2 ]]" " [[#wd Lookup Footer ]]" " </body>" "</html>" } }]]
[[#wd DisplayAnythingRenderer { /AnythingInfo { "{" " /Version "Page.any Version 1.0 1997/12/04"" " /PageLayout {" " /HTML {" " /TemplateName "SharedPageLayout" #HTML filename" " }" " }" "}" } }]]
[[#wd DisplayAnythingRenderer { /AnythingInfo { "/Photo {" " /HTML {" " /Template {" " "[[#wd Image { /ImageName "MyPhoto.gif" } ]]"" " }" " }" "}" " " "/Text1 {" " /HTML {" " /Template {" " "<HR><center>Do you know this very famous sight on the picture above?</center>"" " }" " }" "}" " " "/Text2 {" " /HTML {" " /Template {" " "<HR><center>This picture shows the 'Matterhorn' (Switzerland).</center>"" " }" " }" "}" " " "/Footer {" " /HTML {" " /Template {" " "<HR><center>powered by COAST</center>"" " }" " }" "}" } }]]
[[#wd DisplayAnythingRenderer { /AnythingInfo { "/PageTitle "Welcome on the 'National Geographic' Webpage 1"" " " "/Photo {" " /HTML {" " /Template {" " "[[#wd Image { /ImageName "My2ndPhoto.gif" } ]]"" " }" " }" "}" " " "/Text2 {" " /HTML {" " /Template {" " "<HR><center>This picture shows the 'Big Ben' in London (Great Britian).</center>"" " }" " }" "}" } }]]
This example shows how you can reuse items from within your page hierarchy and that you can overwrite this items whenever you'd like to.
Shared Page-Layout, HTML-Templates