フィールド · Mustache

フィールド · Mustache · helpers.mustache. 生成メソッド · 例

helpers.mustache

生成設定

生成したデータはここに表示されます。

パラメーター & 例

Replaces the {{placeholder}} patterns in the given string mustache style.

helpers.mustache(text: string | undefined, data: Record<string, string | Parameters<string['replace']>[1]>)
text
The template string to parse.
data
The data used to populate the placeholders. This is a record where the key is the template placeholder, whereas the value is either a string or a function suitable for String.replace().

例

"Hello Avery"

テスト環境で合成データを使用してください。

関連ジェネレーター

シナリオを見る