|
Hi,
Is it possible to define multiple START_TAG's
and END_TAG so that, for example, the parser would recognise either
<!-- --> OR % %.
I have tried defining them with the alternation
operator (eg. START_TAG=>'<!--|%' ...), with no
success.
The main reason for implementing this is to
differentiate plain variables from logic. Eg.
<!-- FOREACH person = people -->
Name:
%person.name% Age: %person.age% Hobbies:
<!-- FOREACH
hobby = person.hobbies -->
%hobby%
<!-- END
-->
<br>
<!-- END -->
The main advantage (for us), is that a designer
using a WYSIWYG HTML editor, would see the following:
Name: %person.name% Age:
%person.age% Hobbies: %hobbie%
Enabling the designer to apply formatting
attributes to the main content, without worrying about (or seeing) the
underlying logic. Which is why it is necessary to be able to acheive the <!--
--> style tags.
I am using TT 2.04. Is there a way to acheive
the desired affect without modifying the source?
Thanks.
|
- Re: [Templates] Adjust START and END tags jodie
- Re: [Templates] Adjust START and END tags Andy Wardley
- Re: [Templates] Adjust START and END tags Lyle Brooks
