Post renderer hook to access the html output stream of the component before sending the response. | Community
Skip to main content
May 6, 2020
Solved

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

  • May 6, 2020
  • 1 reply
  • 1416 views

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.

This post is no longer active and is closed to new replies. Need help? Start a new post to ask your question.
Best answer by Shashi_Mulugu

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

 

This similar to ACscommons versionedclientlibs.

1 reply

Shashi_Mulugu
Community Advisor
Shashi_MuluguCommunity AdvisorAccepted solution
Community Advisor
May 30, 2020

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

 

This similar to ACscommons versionedclientlibs.