Use template_view.state column to indicate readiness of a template.