Allow setting of templates using standard [] notation