]> gitweb.factorcode.org Git - factor.git/commitdiff
html.templates: call-template* should not dispose the streams
authorJohn Benediktsson <mrjbq7@gmail.com>
Wed, 5 Jan 2022 03:43:16 +0000 (19:43 -0800)
committerJohn Benediktsson <mrjbq7@gmail.com>
Wed, 5 Jan 2022 03:43:16 +0000 (19:43 -0800)
we may want to write to the output-stream after calling the template.

basis/html/templates/templates.factor

index 3966b1ac83f37c9c4319cfdf16e34c167c273446..2d32c069d9e42756ea15db3bf1048cf71e43cd97 100644 (file)
@@ -4,10 +4,6 @@ USING: accessors arrays assocs boxes continuations debugger io
 io.encodings.utf8 io.files io.streams.string kernel namespaces
 prettyprint quotations sequences strings xml.data xml.syntax
 xml.writer ;
-! USING: accessors kernel fry io io.encodings.utf8 io.files
-! debugger prettyprint continuations namespaces boxes sequences
-! arrays strings html io.streams.string assocs
-! quotations xml.data xml.writer xml.syntax ;
 IN: html.templates
 
 MIXIN: template
@@ -20,7 +16,7 @@ M: callable call-template* call( -- ) ;
 
 M: xml call-template* write-xml ;
 
-M: object call-template* output-stream get stream-copy ;
+M: object call-template* output-stream get stream-copy* ;
 
 ERROR: template-error template error ;