From 995744cdd253b78f1fa11e1d4ad7230cb8ceea90 Mon Sep 17 00:00:00 2001 From: Runxi Yu Date: Fri, 14 Mar 2025 13:47:30 +0800 Subject: [PATCH] Note about io::handle in README --- README.md | 6 ++++++ diff --git a/README.md b/README.md index a7ba635a0b52d806a18c6532f9fd2d0774c935b0..cb386c39ae95abe6cfda712ed1ebced674fd3434 100644 --- a/README.md +++ b/README.md @@ -10,6 +10,12 @@ The `htmpl` module provides auxiliary functions used by the generated Hare code, and must be installed for the generated code to compile. +Each template is presented as a function that accepts an `io::handle` and +other user-defined parameters, if any. The template writes to that +`io::handle`; this allows for a variety of output backends (i.e. you +could use a `memio`/`bufio` stream, or write to an actual +file/socket/pipe socket, etc.) + ## Repository migration notice The primary repository has been -- 2.48.1