Get template data from controller