<!-- 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
In reply to Re: templates vs here docs
by richardX
in thread templates vs here docs
by grashoper
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |