Arrays with their key/values pairs can be nested for better organisation and referenced via "dot notation": the key nested.app contains the value RapidWeaver Classic.
The following sections displays a list of users, taken from the array in key people. Image, user name, profession and location for each user are stored in the data file. In RW, the card is only setup once and placed inside a Mustache Section Stack
who loops over the key people.
Job Title: Key Account Manager
Location: Madrid
Job Title: Sales Executive
Location: Berlin
Job Title: Team Lead
Location: Gibraltar
Job Title: liaison Manager
Location: Paris
To inspect the demo data, click on the debug button below.
The profile images are referenced via RapidWeaver Macros, RW then translates them into real paths:
"profile_image" => "% resource(profile_images/user2) %"translates to
https://images.unsplash.com/photo-1544005313-94ddf0286df2?crop=entropy&cs=tinysrgb&fit=max&fm=jpg……
Array ( [winner] => Array ( [firstname] => Heiko [lastname] => Kanzler "The Master" ) [value] => 10000 [taxed_value] => 6000 [in_ca] => 1 [extra_html] => This is a "raw" message. [nested] => Array ( [greeting] => Hello [app] => RapidWeaver Classic ) [people] => Array ( [0] => Array ( [username] => Anna [profile_image] => https://images.unsplash.com/photo-1580489944761-15a19d654956?crop=entropy&cs=tinysrgb&fit=max&fm=jpg&ixid=MnwxMzI0OXwwfDF8c2VhcmNofDMzfHxwcm9maWxlfGVufDB8fHx8MTY2MDgwNjAxOA&ixlib=rb-1.2.1&q=80&w=1080 [profession] => Key Account Manager [location] => Madrid ) [1] => Array ( [username] => Debbie [profile_image] => https://images.unsplash.com/photo-1544005313-94ddf0286df2?crop=entropy&cs=tinysrgb&fit=max&fm=jpg&ixid=MnwxMzI0OXwwfDF8c2VhcmNofDM5fHxwcm9maWxlfGVufDB8fHx8MTY2MDgwNjAxOA&ixlib=rb-1.2.1&q=80&w=1080 [profession] => Sales Executive [location] => Berlin ) [2] => Array ( [username] => Markus [profile_image] => https://images.unsplash.com/photo-1507003211169-0a1dd7228f2d?crop=entropy&cs=tinysrgb&fit=max&fm=jpg&ixid=MnwxMzI0OXwwfDF8c2VhcmNofDI2fHxwcm9maWxlfGVufDB8fHx8MTY2MDgwNjAxOA&ixlib=rb-1.2.1&q=80&w=1080 [profession] => Team Lead [location] => Gibraltar ) [3] => Array ( [username] => François [profile_image] => https://images.unsplash.com/photo-1500648767791-00dcc994a43e?crop=entropy&cs=tinysrgb&fit=max&fm=jpg&ixid=MnwxMzI0OXwwfDF8c2VhcmNofDE4fHxwcm9maWxlfGVufDB8fHx8MTY2MDgwNjAxOA&ixlib=rb-1.2.1&q=80&w=1080 [profession] => liaison Manager [location] => Paris ) ) [show_text] => )