Templates and generators for apps