Include templates as a dashboard resource

It would be useful to be able to have the equivalent of !include for dashboards created in the lovelace UI. For example adding this in the raw config error currently fails, the template text needs to be pasted in if you’re using the custom button card:

button_card_templates: !include button_card_templates.yaml

is it possible to add .yaml definitions as a resource, ie added under “manage resources”, and then have them included in one or more dashboards, so that the same templates are available to all dashboards?