I came across this. That shows how you can get a code like {{ cta }} populated with any data you want, and get that inserted in a template. I want the same sort of solution, but for content. In other words, let's say I have a blog post, I want to be able to add:
{{ cta }}
or
[[ cta ]]
or any convention that works. But the end result is that I must be able to populate the variable via code.
BACKGROUND INFO
I have a bunch of events on my website. I often write blog posts where I refer to events on the site. To add dynamic content to my blog posts, I'd love to simply add things like:
{{ events || from:19dec2014 || to: 23dec2018 }}
I would then populate these with the correct information.
Any ideas on how to do this correctly?