Printing multifield JSON values to components
I'm trying to come up for a solution where I can have a multifield of 'buttons' at the bottom of a component to have variable number of buttons. I want to make sure to use the same rendering as our button component, but I'm facing two hurdles. I know with buttons I could use a parsys, but I'm looking at this pattern for a number of little includes that wouldn't necessarily use components available to authors in an effort to make sure our authoring and templating is consistent across components
1. the multifield is returning JSON, and I don't want to have to create a JAVA model for a simple component just to parse it. To solve this, I would look at writing a javascript helper to render the multifields
2. `data-sly-resource` doesn't allow you to pass it data.
my multifield data is captured on the components under a node called 'buttons', and we already have a component
I want to do something like this:
<sly data-sly-list="buttons" data-sly-resource="${itemList.index @ resourceType='/components/button'}"/>
My team uses 6.2 right now.. I'm curious if either of the versions up to 6.4 have other ways of doing this.