[TYPO3-dev] Moving the topic of the discussion a little bit -- Based of thread "Change roadmap..."

Dimitri Tarassenko mitka at mitka.us
Wed Apr 12 20:19:05 CEST 2006


Michael, Thomas,

On 4/12/06, Michael Scharkow <mscharkow at gmx.net> wrote:
> Thomas Murphy wrote:
>
> > And for the Smarty/PHP templateing comparison: The good thig about
> > Smarty is it wonderful chaching mechanism, where it compiles the
> > templates into pure php -> so it is as fast as PHP, once cached.
>
> The wonderful thing about using pure PHP as templates:
>
> 1. The syntax is PHP which is more likely to be known to more HTML/CSS
> designers than Smarty.
> 2. It's just as fast as PHP ;)

I think we all are in "violent agreement" with each other ;))

Here is the biggest difference between PHP, Smarty and TS as
templating technologies: while both pure PHP and Smarty let you do the
loops/other simple processing in the template, and just expect your
code to provide data as PHP arrays, TS+markers requires you to do this
processing in your business objects code.

What this means that Smarty & pure PHP templates are easily
interchangeable without modifying the  main code (create an
array/object, call templating engine with this array and template name
as an argument). So THERE is a possibility to have a templating
abstraction layer that will let you create a Smarty template for an
extension where the author originally used pure PHP templates.

TS+Markers are a different story.

--
Dimitri Tarassenko


More information about the TYPO3-dev mailing list