QuestionQ4

Given a scenario, identify how to implement Sling Models and HTL

Refer to the exhibit.

Question Image

The current page contains three children. What is the final rendered HTML output of the code snippet?

  • A
  • B
  • C
  • D
Explanation

In Adobe HTL, data-sly-list repeats an annotated element’s content, leaving one surrounding <ul> with three <li> items. data-sly-repeat repeats the annotated element itself, so an annotated <ul> is rendered three times, each containing its original single <li>.

Learn more

Community Discussion

No comments yet. Be the first to start the discussion!