Only render templates in tree when the node is expanded.