Handle importing of one template into another correctly.