Post renderer hook to access the html output stream of the component before sending the response.

ramaa34753204

06-05-2020

Hi Experts,

     My requirement is to find an id(key) and replace it with the value in the generated html. Since this would affect the out put of any component, I am hoping for any Pre renderer filter that could effectively take the html out put stream generated by each component and run this logic of find and replace. Is there any such hook that is provided by Sling or Adobe API. 

 

Rama.

Accepted Solutions (1)

Accepted Solutions (1)

Shashi_Mulugu

MVP

30-05-2020

You can build a service implementing TransformerFactory interface to rewrite the output html as needed.

 

This similar to ACscommons versionedclientlibs.

Answers (0)