expandorg / worker-app

worker application
https://portal.expand.org/
Mozilla Public License 2.0
2 stars 0 forks source link

Case when variable isn't present #236

Closed kieranoreilly closed 5 years ago

kieranoreilly commented 5 years ago

If the variable isn't present in richText it shows the text of the variable. Should we make it blank if its empty? I'm in favor of it unless it will cause complications later, like if we let them pick the default for a blank variable. I forget what mailchimp does in this case

sslava commented 5 years ago

we could replace variables placeholders with empty string if variable is not presented, but what if user text actually contains something like $(var)?

sslava commented 5 years ago

replaced vars placeholder with empty string if vars is not presented