fill: (template: string, params: Record<string, unknown>) => string = ServerProse.fill
Type Declaration
-
- (template: string, params: Record<string, unknown>): string
-
Parameters
- template: string
- params: Record<string, unknown>
Returns string
the sentence
Fills a prose template (#543 phase 2): each
{{name}}replaced by its parameter. Where a module makes a sentence, it makes it with this from a template it declares, so the sentence and the template the server matches it against cannot differ. A placeholder with no parameter is left as written.