Includes on Cloudflare Pages

I’d love to be able to include other code snippets easily into a page, for example to have a page that has:


content of the page



And at the deployment these would turn into specific snippets already setup.
I am guessing I would need to use Functions for this?

Has anyone done something similar already?


I am sorry but I think this does not belong into the Cloudflare Pages product. This belongs into the tempkate of your SSG (static site generator).