Feature #5257

Allow generic post-processing of template content

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

Status:
Resolved
Priority:
Should have
Category:
Core
Target version:
-
Start date:
2009-11-06
Due date:
% Done:

100%

Estimated time:
Has patch:

Description

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

Actions
#1

Updated by Karsten Dambekalns over 12 years ago

See r3475 for the start of this and feel free to try it out...

#2

Updated by Karsten Dambekalns over 12 years ago

  • Status changed from Accepted to Resolved
  • % Done changed from 0 to 100

Applied in changeset r3751.

Also available in: Atom PDF