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:
https://handlebarsjs.com/guide/partials.html#partial-parameters
https://handlebarsjs.com/guide/partials.html#partial-contexts
--
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!