#1 - template incorrectly merges attributes into its parent datum.
templates and datum accept a 'conditions' attribute.