route cache bugfix, improved render function with more tpl vars