only render template if html is not already set in the context