This is a factory method that returns a template function that is able to render nested lists. The constructor takes two template functions. One for the first level item and one for the second level item. The created inner list views is exposed via the listViews property.