Bug #3295

implement shorthand syntax

Added by Sebastian Kurfuerst about 6 years ago. Updated almost 5 years ago.

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

100%

Category:-
Target version:1.0.0 alpha 1
Has patch: Affected Flow version:

Description

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


Related issues

related to TYPO3.Fluid - Feature #3702: Inline notation should expect object-parameters by default Resolved 2009-06-18

Associated revisions

Revision c025bf63
Added by Sebastian Kurfuerst about 6 years ago

Fluid:
  • Added Inline ViewHelper Syntax (resolves #3295)

History

#1 Updated by Sebastian Kurfuerst about 6 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 about 6 years ago

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

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

Also available in: Atom PDF