Dynamically create menu items for templates