A few weeks ago I blogged about a little project that I called Typed Templating. At that time the project contained a single abstract class, TypedPageList intended to be used as a base class for web controls used for listing EPiServer pages. Since then I’ve begun using it in a real project and made some improvements to it.
The most significant new feature is perhaps another class that I’ve added, TypedMenuList. TypedMenuList is similar to EPiServer’s MenuList but just as TypedPageList it offers statically typed access to the PageData objects in the item templates. It also contains the nice templating functionality found in TypedPageList, such as header and footer templates for various types of items making it easy to generate complex markup without having to do nasty things in code behind.
Another new features is that both controls now have a template named EmptyTemplate. The contents of an EmptyTemplate is rendered if the underlying list is empty.
You can grab the latest version, 0.2, here or fork the repository on GitHub.