Adding a sensor value in a card title?

I’d like to have a text-sensor state in the title of a card. Here is a snippet of what I’m tring to do:

views:
  - title: Home
    sections:
      - type: grid
        cards:
          - type: vertical-stack
            cards:
              - type: vertical-stack
                cards:
                  - title: 'Generator: {{ states("sensor.gen_state")}}'
                    show_name: true
                    show_icon: true
                    show_state: true
                    type: glance
                    columns: 8
                    entities:
                      - entity: sensor.gen_air_temp
                        name: Air Temp
...

But this just shows the literal string Generator: {{ states("sensor.gen_state")}}
Is there a way to achieve this?

A possible way - place a Glance card inside a custom config-template-card.