Ticket #1097: prepared templates and url resolver