Hi all,
I am building an API which will serve up some HTML for other websites to consume. The general idea is that there will be an experience fragment within AEM, and my API will grab the HTML output of this experience fragment and append that to the API response.
Is there a way within Java that I can programmatically calculate the rendered HTML output of an experience fragment? The fragment will be made up of multiple sightly based components.
Imagine an API response similar to this:
{
"cssLink": "mysite.com/path/to/some.css",
"jsLink": "mysite.com/path/to/some.js",
"html": "<div class='my-fragment'>...</div>"
}