#11ty question: i'm making a webc component. it receives a list of images urls. i'd like to preprocess: urls => async munging => webc template. so the input to the component is simple, just an array, but the template is based on the output of a complex async function.
page:
```
---
urls: [...]
---
<my-component images="urls"></my-component>
```
my-component.webc:
```
<script ???>
const gallery = await process(images)
</script>
<p webc:foreach="x of gallery">...</p>
```
can i preprocess data for the template like this? a script tag with webc:setup runs once, not per instance. webc:type="js" is expected to generate the content, not compute more data. halp. webc:setup is closer since its top level variables become template data, but it doesn't run at the right time.
eleventy-image seems to use the webc:type="js" approach and generates html in js. i just wanna know if i can use webc templates instead