Router examples

It seems like all of this code is similar to the controller example generator, it could also be turned into a package, right?