cleaning up template rendering confusion