diff --git a/templates/speech/welcome_home.yaml b/templates/speech/welcome_home.yaml new file mode 100644 index 0000000..a997c50 --- /dev/null +++ b/templates/speech/welcome_home.yaml @@ -0,0 +1,21 @@ +> + {# Script Name Here #} + {%- macro getReport() -%} +
+ Oh dear, I seem to have forgotten how to welcome you home! +
+ {%- endmacro -%} + + {# a macro that removes all newline characters, empty spaces, and returns formatted text #} + {%- macro cleanup(data) -%} + {%- for item in data.split("\n") if item | trim != "" -%} + {{ item | trim }} {% endfor -%} + {%- endmacro -%} + + {# a macro to call all macros :) #} + {%- macro mother_of_all_macros() -%} + {{ getReport() }} + {%- endmacro -%} + + {# Call the macro #} + {{- cleanup(mother_of_all_macros()) -}} \ No newline at end of file