[TYPO3-dev] My first (for me) advanced extension

Ries van Twisk typo3 at rvt.dds.nl
Sat Mar 18 08:10:29 CET 2006


Citeren "S. Teuber" <traveler_in_time at gmx.net>:

> 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.
I don't agree on this one really.
SMARTY has ALL features typo3's templating system has. Thus smarty is a "better"
technology for the same perpose.

Smarty is just handy to move some of the desission making into HTML instead of
marker replacement.

This is easy in smarty....
{if $SOMETHINGBOLD}}
   <b>$SOMETHINGBOLD</b>
{else}
   <em>Or a other text</em>
{/if}

The above is more complicated to make in typo's templating replacement system.


--
Ries van Twisk
Freelance Typo3 Developer
email: ries at vantwisk.nl
web:   http://www.rvantwisk.nl/
skype: callto://r.vantwisk





More information about the TYPO3-dev mailing list