Custom button cards and templates question

Hi everyone,

is the lovelace.yaml required for the custom button card templates?
I’m on Standard Lovelace.
I have quite a few custom button cards and I want to standardize them.

What is the best way to proceed in order not to lose my settings in the Raw Editor?
I want to outsource the custom button cards template.

No you can just paste your templates in the top of the raw view. But you seem to know this already?

Why would you lose them?

I thank you.

I want to outsource the custom button card template.
Is it even possible with the standard Lovelace?
If so, how should I proceed?

What do you mean by “outsource”?

A separate custom button card template yaml file where I can save all the templates.

as in the example below.
When I paste this into the raw editor, I get the following message.

button_card_templates: !include button_card_templates.yaml

You need to be running Lovelace in yaml mode to use includes.