Hi everyone,
I wrote a SlingServlet at @SlingServlet(resourceTypes = "/apps/global-components/left-nav", selectors = "breadcrumb", extensions = "data")
It is just returning a JSON object that is a list of page paths.
What is the best way to access this SlingServlet from Serverside JavaScript? or from HTL?
I want to render the data doing something like this in HTL:
<div data-sly-use.breadcrumbs="breadcrumb.js">
<div data-sly-list.path="${breadcrumbs.breadcrumbs}">
<div>${path}</div>
</div>
</div>