[TYPO3-mvc] Applying Fluid Viewhelpers using an additional syntax

Thomas "Thasmo" Deinhamer thasmo at gmail.com
Wed Dec 16 02:18:07 CET 2009


Good morning folks!

What do you think of additionaly using this:

{object.text
	|f:format.crop(maxCharacters: 100)
	|f:format.nl2br
	|f:format.html
	|f:format.printf(arguments: {a: 1, b: 2})
}

instead of this:

<f:format.printf arguments="{a: 1, b: 2}">
	<f:format.html>
		<f:format.nl2br>
			<f:format.crop maxCharacters="100">
				{object.value}
			</f:format.crop>
		</f:format.nl2br>
	</f:format.html>
</f:format.printf>

What do you think?

Thanks,
Thomas


More information about the TYPO3-project-typo3v4mvc mailing list