Feature #3702

Inline notation should expect object-parameters by default

Added by Bastian Waidelich about 6 years ago. Updated almost 5 years ago.

Status:Resolved Start date:2009-06-18
Priority:Should have Due date:
Assigned To:Sebastian Kurfuerst % Done:

100%

Category:Core
Target version:-
Has patch:

Description

Currently the syntax

{f:debug(settings)}

will cast the argument to a string.
To use objects as parameters in inline syntax, you'll have to write:
{f:debug('{settings}')}

It would be nice if it worked like this:
'foo'/"foo" => 'foo'
foo => {foo}
123 => 123

Question: What happens with named parameters?
I think, the following would be consistent:

{f:debug(settings, title='string')}
{f:debug(settings, title=123)}
{f:debug(settings, title=settings.title)}


Related issues

related to TYPO3.Fluid - Bug #3295: implement shorthand syntax Resolved 2009-05-14

History

#1 Updated by Bastian Waidelich about 6 years ago

  • Subject changed from Inline syntax should expect objects by default to Inline notation should expect object-parameters by default

#2 Updated by Sebastian Kurfuerst almost 6 years ago

  • Status changed from New to Resolved
  • % Done changed from 0 to 100

the syntax is now like in arrays.

Also available in: Atom PDF