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"

请在测试环境使用合成数据。

相关生成器

探索场景模板