HTL: How to dump the contents of my variable?
So I have this line in my HTML
<sly data-sly-use.menuItem="${'com.myhost.core.impl.view.global.TopNavigationItemView'}"></sly>
menuItem has many properties like id, activeclass and etc.
I would like to dump/show the full contents of menuItem without having to specify the properties (example: menuItem.id) individually.
Is this possible? If yes, how?
I tried this
<dl data-sly-list="${menuItem}">
<dt>index: ${itemList.index}</dt>
<dd>value: ${item.title}</dd>
</dl>
but I cannot see it in my page. I even tried "view page source" and nothing there.
Any ideas? Thanks!