( strings: TemplateStringsArray | string, ...args: ReadonlyArray<Template.Interpolated> )
| 233 | > |
| 234 | (html: string): HttpServerResponse |
| 235 | } = ( |
| 236 | strings: TemplateStringsArray | string, |
| 237 | ...args: ReadonlyArray<Template.Interpolated> |
| 238 | ) => { |
| 239 | if (typeof strings === "string") { |
| 240 | return text(strings, { contentType: "text/html" }) |
| 241 | } |
| 242 | |
| 243 | return Effect.map(Template.make(strings, ...args), (_) => text(_, { contentType: "text/html" })) as any |
| 244 | } |
| 245 | |
| 246 | /** |
| 247 | * Creates a streaming HTML response from a template. |