Make paths used in templates relative to root