Skip to content
Grav 2.0 is officially stable. Read the announcement →
Archive

Rendering Dynamic Content

Started by Muut Archive 10 years ago · 1 replies · 379 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 1368 9 years ago
Archive · by Muut Archive, 9 years ago
2 940 9 years ago
Archive · by Muut Archive, 9 years ago
2 4069 9 years ago
Archive · by Muut Archive, 9 years ago
1 2960 9 years ago
Archive · by Muut Archive, 9 years ago
3 1125 9 years ago