Feature #5257

Allow generic post-processing of template content

Added by Karsten Dambekalns over 12 years ago. Updated over 11 years ago.

Should have
Target version:
Start date:
Due date:
% Done:


Estimated time:
Has patch:


Currently relative URLs to resources must be created using the resource viewhelper. It would be a lot nicer if that was not needed, and this triggered the idea of post processing values.
For the task at hand it would be sufficient to add the needed code to evaluate() in TextNode, but that would not be compatible with Fluid for v4 and it seems to be better to come up with a more generic solution.

Thus the following is proposed:
  • classes implementing a certain interface can be registered with Fluid
  • each class can be registered to act on only certain types of syntax tree nodes
  • after a template is parsed those processors are asked to do their work on the matching nodes

That would allow to plug in a processor to adjust resource URLs as well as apply HTML escaping on all text nodes (see #5256)

Related issues

Related to TYPO3.Fluid - Bug #5256: htmlspecialchars() applied inconsistently and of little useResolvedKarsten Dambekalns2009-11-06


Also available in: Atom PDF