making template url an attribute