XML-configured template

DOWNLOAD
This example uses both possible ways to configure this template, it first reads the config.xml which is in the same directory as the template and it reads the xml-data which are inside this template file, surely this doenst make much sense in this example, but it demonstrates how the config might be applied.
You can put the config.xml file anywhere in the 'templateDir' if it is found on the path to the template it will be applied.

This is the XML-part which configures this template, either in the config.xml or/and in this template-file (index.tpl).
<HTML_Template_Xipe>
  <options override="yes">
    <delimiter begin="[" end="]"/>
    <autoBraces value="true"/>
    <locale value="en"/>
  </options>
</HTML_Template_Xipe>


If you like :
  • clean HTML-code
  • ALL the power of PHP inside a template
  • a compiled template
  • easy to use (template) engine
  • And you   D O N ' T   like :
  • php-tags in your html
  • the braces: "{" and "}", since they could be replaced by proper indention
  • to learn a new template language
  • then you should try HTML_Template_Xipe.



    no disadvantages registered yet (really?) , but feel free and mail me
    but look at the code first
    and the template
    and the complied template
    template log file


    all the currently possible and working xml-options - overview

    <HTML_Template_Xipe>
      <options>
        <delimiter begin="[" end="]"/>
        <autoBraces value="true"/>
        <locale value="en"/>
        <cache>
          <time value="x" unit="week|weeks|day|days|hour|hours|minute|minutes|second"/>
          <depends value="$someVar $anotherVar $_nextVar"/>
        </cache>
      </options>
    </HTML_Template_Xipe>