The section class

The section class will exentend the template class.
A section in a template-file is like an little template itself. Single sections can be displayed individually or you could
fetch it and assign it to a placeholder of another section.

<!--section-start::Example-->
<HTML>
<HEAD> {PLACEHOLDER} </HEAD>
<BODY> ...
<!--section-end::Example-->

The order of sections displayed is indepentend from the location in the template-file. You could display the last section first
or vis versa. Also you can diplay single sections repeatedly with same content or reassign placeholders in the section before.

The interface simply consists of 2 methods:
 + 4 methodes inherited from template class

       
function fetch()
function assign_section()
       
 

 

The function fetch() expects 1 argument ...
It will return the content of a section.
The  argmunt must be a string and must be identical  to a singlesection name in the template-file.
A section name is the "Example" in "<!--section-start::Example-->".
Each section must have a unique name and must have a -start:: and an -end:: .

The function assign_section() expects 1 argument ...
It will dsisplay the content of a section.
The  argmunt must be a string and must be identical  to a singlesection name in the template-file.

       
Quick Box