]> gitweb.factorcode.org Git - factor.git/commitdiff
html.templates: implement M\ byte-array call-template*
authorJohn Benediktsson <mrjbq7@gmail.com>
Mon, 15 May 2023 20:39:19 +0000 (13:39 -0700)
committerJohn Benediktsson <mrjbq7@gmail.com>
Mon, 15 May 2023 21:21:34 +0000 (14:21 -0700)
basis/html/templates/templates.factor

index 766176de00cbe861310e2371a0bbb0375cf25de9..f3d742904afc4f092b165cd54b8b6a7e44a5d623 100644 (file)
@@ -1,15 +1,17 @@
 ! Copyright (C) 2008, 2009 Slava Pestov.
 ! See https://factorcode.org/license.txt for BSD license.
-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 arrays assocs boxes byte-arrays continuations
+debugger io io.encodings.utf8 io.files io.streams.string kernel
+namespaces prettyprint quotations sequences strings xml.data
+xml.syntax xml.writer ;
 IN: html.templates
 
 MIXIN: template
 
 GENERIC: call-template* ( template -- )
 
+M: byte-array call-template* write ;
+
 M: string call-template* write ;
 
 M: callable call-template* call( -- ) ;