Sorry but this kind of change cannot be made externally – it needs a changes in the core Publii files. And to be honest I do not see a necessity to add such syntax.
Handlebars supports similar features:
Do you appreciate the support you've received today? If so, consider donating to the Publii team by clicking here; we'll be sure to use your donation to make Publii even better!