Dynamically pull slide content from file or API #4906
Unanswered
fredzannarbor
asked this question in
Q&A
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
For a React frontend for a web application running on Flask, I want to dynamically pull Swiper slide content from a directory (or in future API).
I want to pull the content for the slide names, urls, and descriptions from a local directory that contains metadata files ending in json. The content of each metadata file looks like this:
In Python, I would do a for loop with a glob, but I can't figure how to do that in Swiper/JSX. In pseudocode, something like this:
Result: i slides displayed in the Swiper.
I can't see a path to dynamically create and insert the tags and what's between them. Help!
Beta Was this translation helpful? Give feedback.
All reactions