Fix #10: Add helper function to retrieve template by name