start to generalise form arguments passed through to renderer
remove more duplication
move arg dict where it can be reused
reuse template_args
reuse template_args
manual merge
manual merge