1. Variable Substitution
  2. Hashtag Helpers

Variable Substitution

Hashtag Helpers

Hashtag helpers provide with some extra functionality for value replacement substitution.

Overview

Value replacement substitution is a powerful feature that allows you to set values in the data model in various parts of Stubber.
Hashtag helpers allow you to do more complex data manipulations that can return complex data structures or values.

Hashtag helpers follow the syntax ~~#{helpername}(parameters).
The helper name is the name of the helper you want to use, and the parameters are the values you want to pass to the helper.
The parameters are optional, and some helpers may not require any parameters.

NOTE

Remember that hashtag helpers can only be used on the right-hand side of the value replacement substitution, and never used inline.