Moved templates into a templates object attached to the root namespace