[TYPO3-dev] My first (for me) advanced extension
S. Teuber
traveler_in_time at gmx.net
Fri Mar 17 21:06:50 CET 2006
Hi Wolfgang,
>> But sorry Wolfgang, what's the problem about TYPO3's templating?
>
> It's complicated (with all this methods to replace single markers and
> section markers),
Hm. There are, like, 6 methods to substitute markers or subparts.
In praxis, you use three of them.
Complicated?
> it's ugly (this ###UPPERCASE### notation) and
You are aware of the fact that you don't need to uppercase markers that
are replaced using substituteMarker? You don't even need to hang on to
the ###-notation.
$markers = array('-mymarker-' => 'my value);
will work IIRC. At least
$markers = array('MYMARKER' => 'my value);
applied to ###MYMARKER### will leave you with ###my value###,
instead of
$markers = array('###MYMARKER###' => 'my value);
which will work like expected.
All used with substituteMarkerArray(), of course.
> very limited compared to a "real" template engine like Smarty.
What's missing?
> But don't let start another discussion about that, that's just my
> opinion (I like to share though).
> Simply try both and you'll see the difference.
Note to self: if (spare_time > 0) { try_smarty(); }
;-)
But since this seems to be another of these "I *like* xy better" topics,
I agree with you: let's not spam the list.
We already know where this leads to:
Any technology/program/solution is "best" just to specific needs, there's
not "*the* best" thing - and after all, we like what we are used to
generally better that things we don't really know yet.
Just wanted to point out the ###UPERCASE### thing anyway.
Sven
More information about the TYPO3-dev
mailing list