{% import 'lib/di.twig' as di %}
services:
  {{ machine_name }}.twig_extension:
    class: Drupal\{{ machine_name }}\{{ class }}
{% if services %}
    arguments: [{{ di.arguments(services) }}]
{% endif %}
    tags:
      - { name: twig.extension }
