April 14, 2020
Estimated Post Reading Time ~ 1 mins

Creating an AEM HTL component that uses Sling Models to parse a web page

You can create an Adobe Experience Manager (AEM) custom component by using AEM HTML Language Template (HTL - formally Sightly) and Sling Models that is able to parse a Document Object Model (DOM) and write the results out to an AEM web page. For example, assume you have a requirement to parse a web page and write out the images on an AEM web page. Using a custom DOM parser component, you can implement this requirement.

This AEM development article walks you through how to use HTL and Sling Models to create a custom AEM component that is able to parse a DOM.

aempages

The previous illustration shows the results produced by the custom AEM DOM parser component that parses images from the AEM community page located here:
aem4beginner.blogspot


By aem4beginner

No comments:

Post a Comment

If you have any doubts or questions, please let us know.

Ad Blocker Detected :(

Please consider supporting us by disabling your ad blocker.

Please Disable your adblocker and Refresh the page to view the site content.