Quantcast
Channel: Active questions tagged svelte - Stack Overflow
Viewing all articles
Browse latest Browse all 1541

How can I get all files in a directory with svelte?

$
0
0

I want to show all images in a folder, like:

<script>   let list = /*array of all files in a folder*/;</script>{#each list as l}<img src={(path_of_l)} alt=""/>{/each}

How can I get that 'list' and paths of its elements?


Viewing all articles
Browse latest Browse all 1541

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>