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

Jochen Rau jochen.rau at typoplanet.de
Wed Oct 21 11:46:49 CEST 2009


Falk Kühnel wrote:
>>> And third option for me would be the plus sign. That should be intuitive
>>> for all users, even if order matters here ;):
>>> <f:image title="{post.title + f:format.crop(maxChars: 30)`}" />
>> No, + means "add" (or maybe "concatenate") never.
> Not entirely true. To the lay user it means "and" in a non numerical
> context. And concatenate is only known to developers in that regard.

Hmm, the + sign has IMO no direction. But I was a teacher for 
mathematics, so don't count on my argumentation ;-)

I am getting more and more familiar with

{post.title --> f:format.crop(maxChars:30) --> f:format.nl2br()}

as it has no meaning other than "from left to right".

{post.title ---------> f:format.crop(maxChars:30) --------> 

would be even better, but this isn't a shorthand syntax anymore. ;-)


Every nit picked is a bug fixed

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