Replace every {{secret:NAME}} in text with replace(name, whole).
{{secret:NAME}}
text
replace(name, whole)
Replace every
{{secret:NAME}}intextwithreplace(name, whole).