Template rendering correctly