[TYPO3-50-general] RFC: Improved Shorthand Syntax

Sebastian Kurfürst sebastian at typo3.org
Tue Oct 20 12:08:16 CEST 2009

Hey Bastian,

> What I prefer with the latter syntax is, that the order is clearer (crop
> title and _then_ convert newlines to breaks)
>> in PHP, "->" does something totally
>> different (calling an method on an object)...
> nl2br($text) vs text->f:format.nl2br()
> It's not so different after all (though it technically it is of course).
That's somehow true... However the
{post.title->f:format.crop(maxChars: 30)->f:format.nl2br()}

is acutally the following:
  <f:format.crop maxChars="30">

So, the last element of the chain is the outermost element of the syntax

So, I think we should tell people _not_ to use <f:if> as such Post
Processors, else things might happen what the user does not expect.


More information about the TYPO3-project-5_0-general mailing list