Hashtag Helpers
Target
Ensures substitution happens only in specified service
This hashtag helper allows you to specify which service should perform the substitution of a value. When used, only the specified target service will process the substitution while other services will treat it as a literal string.
If the target service specified doesn't match the current service, the substitution will not be processed and the reference will be treated as a literal string.
Uses
- Control which service processes specific substitutions
- Prevent unwanted substitutions in other services
- Ensure sensitive data is only processed by intended services
- Target specific functionality to particular services like WhatsApp or API calls
Usage
Helper name: target
Arguments
Parameters
eg.
~~#target 'service_name'#substitution_string
Examples
WhatsApp Service Target
This example shows how to ensure a phone number substitution only happens in the WhatsApp service.
Usage Example
Result (When processed by WhatsApp service)
Result (When processed by other services)
API Call Service Target
This example demonstrates targeting a URL substitution specifically for the API call service.
Usage Example
Result (When processed by API Call service)
Result (When processed by other services)
Multiple Targeted Substitutions
This example shows how to use multiple targeted substitutions in the same template.
Usage Example
In this example:
- The WhatsApp number substitution will only be processed by the WhatsApp service, other services will see the exact helper syntax
- The API URL substitution will only be processed by the API Call service, other services will see the exact helper syntax
- The shared value will be substituted by all services as normal