How do i create templates with commands in them?

I am starting to get around using templates and I am having issues implementeing dynamic variables such as the date and more importantly commands like deadlines or TODO. I know how to set it up manually with the /deadline but I would like to know if I could implement it on a template? and if so, how?

I also would like to know how to do this - any chance you figured this out?

Hi, I didn’t find your question before I posted mine, try this How to escape dynamic variable - #6 by ellox