Include Statements


Another feature that s often useful for creating real-world Web applications is the ability to include other HTML files. This not only reduces the complexity of individual HTML files (by separating information into other files), but it also, for many common items such as navigation bars, headers, and footers, allows developers to make one change in one place in one file and have it propagate throughout their Web site.

ATL Server allows you to include either HTML files or SRF files in any SRF file. The syntax for this is very simple, and the include takes place wherever you place this tag within your layout:

 <html>  {{include header.srf}}  <body>  </body>  </html> 
Note  

You can use the include statement in conjunction with other features such as flow control in order to display includes only when certain conditions are met.

Caution  

An included SRF file will make use of handlers specified in the included file, and it will not take any settings from the parent file (into which it is included).




ATL Server. High Performance C++ on. NET
Observing the User Experience: A Practitioners Guide to User Research
ISBN: B006Z372QQ
EAN: 2147483647
Year: 2002
Pages: 181

flylib.com © 2008-2017.
If you may any questions please contact us: flylib@qtcs.net