add a  attribute to select a custom template