Skip to content
● Grav 2.2 is out: 2x faster cold starts and 96% less memory on big sites. Read the announcement →

Rendering Dynamic Content

Started by Muut Archive 10 years ago · 1 replies · 450 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 Deleted User, 9 years ago
0 2528 9 years ago
Archive · by Muut Archive, 9 years ago
2 1664 9 years ago
Archive · by Muut Archive, 9 years ago
2 4943 9 years ago
Archive · by Muut Archive, 9 years ago
1 3768 9 years ago
Archive · by Muut Archive, 9 years ago
3 1779 9 years ago