Mustache Prompt works with templates written in the Mustache template format. It will automatically detect and prompt you for the values of all the variables in your template, and then create a new draft using the data you entered.
It supports type annotations for dates, booleans, and arrays of strings. Try running the action on a draft containing the example text below to see how it works. For more information, read my blog post on this action.
Here is a basic {{text_variable}}.
{{bool:#boolean_variable}}
Here is a paragraph that will only display if boolean_variable is true.
{{/boolean_variable}}{{^boolean_variable}}
Here is a paragraph that will only display if boolean_variable is false.
{{/boolean_variable}}{{#comma_separated_strings}}
Here is a paragraph that is repeated for each item in the array comma_separated_strings. The current item is {{.}}.
{{/comma_separated_strings}}Here is a date: {{date:date_variable}}.
Here is the same date three days later: {{date_variable+3d}}
Here is the same date one week ago: {{date_variable-1w}}
Here is the same date in seven months’ time: {{date_variable+7m}}
Here is another date that is offset without the original date being shown: {{date:another_date+3w}}
A little tease as well: I actually built this as part of an update to one of my most popular actions. More on that soon…