Expand my Community achievements bar.

Submissions are now open for the 2026 Adobe Experience Maker Awards.

Mark Solution

This conversation has been locked due to inactivity. Please create a new post.

SOLVED

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

Avatar

Level 1

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.

1 Accepted Solution

Avatar

Correct answer by
Community Advisor

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

 

This similar to ACscommons versionedclientlibs.

View solution in original post

1 Reply

Avatar

Correct answer by
Community Advisor

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

 

This similar to ACscommons versionedclientlibs.