in reply to templates vs here docs
<!-- start of sidebar --> [% FOREACH sdbar = sidebar %] [% SWITCH sdbar.htag %] [% CASE "CC" %] [% sdbar.ctext %] [% CASE "CH" %] [% sdbar.htext %] [% CASE "/DIV" %] </div> [% CASE "DC" %] <div class ="[% sdbar.htext %]"> [% CASE "DI" %] <div id ="[% sdbar.htext %]"> [% CASE "P" %] <p> [% CASE "/P" %] </p> [% CASE "DIT" %] <div id="mkdoc-children" title='Sidebar menu for "[% g_company %]".'> [% CASE "LL" %] <li xml:lang="[% g_lang %]" lang="[% g_lang %]" class="lang-[% g_la +ng %]"> <a title="[% sdbar.ctext %]" href="[% g_sitename %]/[% sdbar.htext %]" hreflang="[% g_lang %]">[ +% sdbar.dtext %]</a> </li> [% CASE "H1" %] <[% sdbar.htag %]>[% sdbar.htext %]</[% sdbar.htag %]> [% sdbar.ctext %] [% CASE "H2" %] <[% sdbar.htag %]>[% sdbar.htext %]</[% sdbar.htag %]> [% sdbar.ctext %] [% CASE "UL" %] <ul> [% CASE "/UL" %] </ul> [% CASE "LI" %] <[% sdbar.htag %]>[% sdbar.ctext %]</[% sdbar.htag %]> [% CASE "@C" %] <!-- [% CASE %] An unexpected error has occured.<BR><B>[% sdbar.htag %]</B><BR> [% END %] [% END %] <!-- end of sidebar -->
The power of the template language makes for MVC like another poster mentioned, the seperation of content, data, and templates.
Richard
There are three types of people in this world, those that can count and those that cannot. Anon
|
|---|