Extend custom formats to template tag attributes