Rendering Dynamic Content

In the example plugin I see that it just returns a “page” from the collection. Can I generate a string in a plugin and have that rendered rather than rendering a page. Or can I dynamically generate a page, save it to disk, and then render that page somehow?

Just looking for a conceptual answer before I download and install grav and see.

Thanks

Joe

Of course, you can set anything as a twig variable and have it available to use in a twig template.