I want to use images for a background slide (vegas) without adding them to a yaml file explicitly.
I have
/user/pages
/01.start
/images/
bg1.png
bg2.png
and need an output like this
<script type="text/javascript">
$("body").vegas({
timer: false,
slides: [
{ src: "/user/images/slide/bg1.png" },
{ src: "/user/images/slide/bg2.png" }
]
});
</script>
I can get page.media.images, but I can't figure out how to loop over /users/pages/images and how to deal with "{{}}" outputs inside the javascript statement.