{% for scope in hookable_metadata.context.resource.scopes %}
{% hook 'scope#' ~ scope.type with { scope } %}
{% endfor %}