Add `get_namespace_name` and update the template files