[TYPO3-50-general] RFC: Improved Shorthand Syntax
Karsten Dambekalns
karsten at typo3.org
Wed Oct 21 10:33:04 CEST 2009
Hi.
On 21.10.09 10:17, Robert Lemke wrote:
> b) <f:image title="{post.title | f:format.crop(maxChars: 30)}" />
> e) <f:image title="{post.title; f:format.crop(maxChars: 30)}" />
> g) <f:image title="{post.title << f:format.crop(maxChars: 30)}" />
>
> Hmm. If I was to decide it right now I'd select in the following order:
>
> g), b), e)
I would definitely vote for the pipe. I even remember fondly the times
of using Smarty, where you could do things like this:
{$articleTitle}
{$articleTitle|upper|spacify}
{$articleTitle|lower|spacify|truncate}
{$articleTitle|lower|truncate:30|spacify}
{$articleTitle|lower|spacify|truncate:30:". . ."}
Regards,
Karsten
More information about the TYPO3-project-5_0-general
mailing list