In a content management system you can usually create pages on the fly eg
www.website.com.au/home.aspx
www.website.com.au/projects.aspx
www.website.com.au/contact-us.aspx
In a previous CMS that we wrote we physically created these files on disk when the user selected to create a new page in his site. We copied the new file from a base template page, renamed the file and renamed the class in the code behind eg
template_page.aspx and template_page.aspx.cs turned into
projects.aspx and projects.aspx.cs
This was all done via our CMS application. No files needed to be manually created by a user.
How would this approach work using MVC?
Eg www.website.com.au/home/
www.website.com.au/projects/
www.website.com.au/contact-us/
Presumably we would need to dynamically create controllers and views on the fly?
This seems even messier than the old approach but I suppose its feasible.
Can anyone think of a smarter way to do it?