Update templates.md

Updated for preferred version with '$' prefixed variables from simon_w on IRC.