introduce writable_template config to manage template overwriting