Bug #3295

implement shorthand syntax

Added by Sebastian Kurfuerst over 12 years ago. Updated about 11 years ago.

Status:
Resolved
Priority:
Should have
Category:
-
Target version:
Start date:
2009-05-14
Due date:
% Done:

100%

Estimated time:
Has patch:

Description

example: {f:date()} - the () are mandatory


Related issues

Related to TYPO3.Fluid - Feature #3702: Inline notation should expect object-parameters by defaultResolvedSebastian Kurfuerst2009-06-18

Actions
#1

Updated by Sebastian Kurfuerst over 12 years ago

Reason why we do shorthand syntax to call viewhelpers: <a href="{f:uri(action='...')}" class=""> </a>

This will be allowed: {f:link("Hello {f:format.date()} world" action="greet")}

Things with multiple lines will not be allowed (we want to enforce people to use XML-based syntax in this case: {f:link("Hello

{f:for}
world"
action="greet")}

The unnamed parameter, if it exists, has to be the first one. {f:link("Hello Guys" action="greet")}

We accept the following line, though it is really ugly as hell
<!-- Bad, but allowed --> {f:for("{singlePost}" each="{post}" as="singlePost")}

We call this syntax
INLINE NOTATION!!!!

#2

Updated by Sebastian Kurfuerst over 12 years ago

  • Status changed from New to Resolved
  • Assignee set to Sebastian Kurfuerst
  • % Done changed from 0 to 100

:-) :-) :-)
Thanks for the great discussions at the coding night

Also available in: Atom PDF