1. Hashtag Helpers
  2. Target

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.

NOTE

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

Position Description
1 Target service name (e.g. 'whatsapp', 'apicall')

Parameters

Position Description
1 Substitution string to be processed

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

loading...

Result (When processed by WhatsApp service)

loading...

Result (When processed by other services)

loading...

API Call Service Target

This example demonstrates targeting a URL substitution specifically for the API call service.

Usage Example

loading...

Result (When processed by API Call service)

loading...

Result (When processed by other services)

loading...

Multiple Targeted Substitutions

This example shows how to use multiple targeted substitutions in the same template.

Usage Example

loading...

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