( strings: TemplateStringsArray | string, ...args: ReadonlyArray<Template.Interpolated> )
| 251 | > |
| 252 | (html: string): HttpServerResponse |
| 253 | } = ( |
| 254 | strings: TemplateStringsArray | string, |
| 255 | ...args: ReadonlyArray<Template.Interpolated> |
| 256 | ) => { |
| 257 | if (typeof strings === "string") { |
| 258 | return text(strings, { contentType: "text/html" }) |
| 259 | } |
| 260 | |
| 261 | return Effect.map(Template.make(strings, ...args), (_) => text(_, { contentType: "text/html" })) as any |
| 262 | } |
| 263 | |
| 264 | /** |
| 265 | * Creates a streaming HTML response from a template. |