request, router and routing extension for templates