Template and path systems move logic to router