template in separate file is more readable IMO, but it's just a suggestion