SimpleTemplate, each template configurable individually
| From: | Wolfram Kriesing | Date: | Tue, 22 Jan 2002 17:01:48 +0000 |
| Subject: | SimpleTemplate, each template configurable individually | ||
| Groups: | php.general php.pear.dev | ||
| Request: | Send a blank email to pear-dev+get-4064@lists.php.net to get a copy of this message | ||
just to announce that SimpleTemplate is also capable now of
configuring each template individually
you either write a block like this:
<SimpleTemplate>
<options override="yes">
<delimiter begin="[" end="]"/>
<autoBraces value="true"/>
<locale value="en"/>
</options>
</SimpleTemplate>
in your template file or in a seperate config-file, which can be
laying in the path to this template
this gives designers (template creators) the choice to use settings
of their preference
this feature is realized using the Tree-class which can handle XML
structures
have a look at
http://wolfram.kriesing.de/programming
by the way: this template can also translate your templates, without
using a function call around every string ... have a look
examples are also avaiable at the url given above
--
Wolfram