Refactor routing system, added yield-inherit attribute for inheriting scope in yields