How can list elements be looped under <script> in sightly?
问题 In my html page I would like to loop through the properties returned by my Java class but do it under <script> tag. Currently my html page has this: <div id="map_wrapper"> <div data-sly-use.ev="Foo" class="mapping" id="${ev.googleClass || ''" > </div> </div> <script> .... var markers = [ ['Bondi Beach', -33.890542, 151.274856], ['Coogee Beach', -33.923036, 151.259052], ['Cronulla Beach', -34.028249, 151.157507], ['Manly Beach', -33.80010128657071, 151.28747820854187], ['Maroubra Beach', -33