( strings: TemplateStringsArray | string, ...args: ReadonlyArray<Template.Interpolated> )
| 158 | > |
| 159 | (html: string): ServerResponse.HttpServerResponse |
| 160 | } = ( |
| 161 | strings: TemplateStringsArray | string, |
| 162 | ...args: ReadonlyArray<Template.Interpolated> |
| 163 | ) => { |
| 164 | if (typeof strings === "string") { |
| 165 | return text(strings, { contentType: "text/html" }) |
| 166 | } |
| 167 | |
| 168 | return Effect.map( |
| 169 | Template.make(strings, ...args), |
| 170 | (_) => text(_, { contentType: "text/html" }) |
| 171 | ) as any |
| 172 | } |
| 173 | |
| 174 | /** @internal */ |
| 175 | export const htmlStream = <A extends ReadonlyArray<Template.InterpolatedWithStream>>( |