Patch Changes
-
#2174
abcb7d9
Thanks @tim-smart! - add ServerResponse.html/htmlStream apiIt uses the Template module to create html responses
Example:
import { Effect } from "effect"; import * as Http from "@effect/platform/HttpServer"; Http.response.html`<html>${Effect.succeed(123)}</html>`;
-
#2174
abcb7d9
Thanks @tim-smart! - add Template module to platformThe Template module can be used to create effectful text templates.
Example:
import { Effect } from "effect"; import { Template } from "@effect/platform"; const t = Template.make`<html>${Effect.succeed(123)}</html>`; Effect.runSync(t); // returns "<html>123</html>"
-
Updated dependencies [
bc8404d
,2c5cbcd
,6565916
]:- effect@2.3.7
- @effect/schema@0.62.8