Skip to content
● Meet Grav Guard: keep every Grav site you run secure and up to date, all from one place. Free for up to 3 sites. Read more →

Rendering Dynamic Content

Started by Muut Archive 10 years ago · 1 replies · 503 views
10 years ago

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

10 years ago

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

Suggested topics

Topic Participants Replies Views Activity
Archive · by Muut Archive, 10 years ago
1 676 1 week ago
Archive · by Deleted User, 9 years ago
0 3043 9 years ago
Archive · by Muut Archive, 9 years ago
2 1983 9 years ago
Archive · by Muut Archive, 9 years ago
2 5337 9 years ago
Archive · by Muut Archive, 9 years ago
1 4134 9 years ago