Figuring out dynamic templates