!includes - Is it possible to concatenate them?

is something like this possible (I know the spacing is off but it won’t format correctly)?

  - service: script.tts
    data_template:
      message: >
../../includes/greeting.yaml
../../includes/weather.yaml

Check out include_dir_named. It’ll merge all files in a folder. All you’d need to do then is put your specific ones into a subfolder like /TTS/

1 Like

Thanks but I wanted to select different includes at different times dynamically.
But in any case I’m off that idea now.

I’m trying to find a way to modularise my TTS to make it as flexible as possible.

My bad, I realise I didn’t read the entirety of your code snippet and missed the bit what you were using a data template, I was on mobile at the time and thought I was being useful :see_no_evil: