Can you be more specific, then, about what exactly you’re trying to accomplish? Grav plugins certainly can be used to generate content (e.g., shortcodes). I just can’t tell from your initial post what your specific use case is.
Thanks for your patience, I realise I probably hadn’t explained my self very well, I’ll try now
I’m looking to use the youtube api to pull in playlists to create lists of thumbnail links on my master page. The thumbnails would then link to a video player page containing the relevant video and content.
I’m relatively new to Grav and haven’t delved into the likes of building plugins yet. With my current level of understanding I would approach this by creating a page for each video and then using a collection on the master page to link to them. My aim is to find a way where I don’t need to create a new page for every video. I’m looking for a more automated process using a dynamic page to display each video. The thumbnails would link to the video player page and pass an id to pull in the relevant video content.
To actually embed a video, use the YouTube plugin already available.
If the URLs of the video are known, you could put them in the frontmatter of the page and the twig can iterate through them and display multiple videos.
You could also create a single generic viewer page that accepts a query parameter that you pull in and display.