[TYPO3-50-general] [TYPO3-team-core-v5] Templating Engine

Christopher Hlubek bruno.bolzano at gmail.com
Fri Oct 24 15:30:28 CEST 2008


2008/10/24 Bastian Waidelich <bastian at typo3.org>:
> Well, probably _only_ associative arrays. It won't be possible to tell
> apart objects and non-associative arrays with only one element otherwise:

That's true, we can only allow associative arrays there.

>
> if that is possible:
> <f3:for each="{1,2,3}" as="number">
>
> that should be possible too:
> <f3:for each="{1}" as="number">
>
> we could only achieve this by imposing yet another syntax for
> collections (like <f3:for each="[1,2,3]" as="number">). But that makes
> it more complex and you'd have to escape all square brackets in your
> templates..

No I think yet another syntax is confusing. I like the implicit
creation of hashes in ruby, the braces syntax would do that in BEER3.

Greetings,
Christopher


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