new sub layout method.

new generate sub layout method and test controller for example.