Is there an option to "create a reusable piece of code" (like a global snippet) from within the dashboard or when editing a page? or is there a way to do this?
Something where you could create piece of code as you might create a page?
But instead you can create a global snippet with a predefined snippet template like "card" or "promo" or "html code" as you would select a page template?
Once created that snippet could be added like a variable into existing page variables?
And when editing content, if there was an option or context menu to "Add global snippet", if selected it could show available snippets to insert and possibly the option to "Create a new snippet"?