Allow for partial expansion of templates