필드 · 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"테스트 환경에서 합성 데이터를 사용하세요.