diff src/luan/modules/Html.luan @ 1798:f8eba0442956

use backticks
author Franklin Schmidt <fschmidt@gmail.com>
date Thu, 22 Feb 2024 08:08:07 -0700
parents 36c28be6d432
children
line wrap: on
line diff
--- a/src/luan/modules/Html.luan	Sun Feb 11 18:52:53 2024 -0700
+++ b/src/luan/modules/Html.luan	Thu Feb 22 08:08:07 2024 -0700
@@ -8,8 +8,6 @@
 local ipairs = Luan.ipairs or error()
 local pairs = Luan.pairs or error()
 local type = Luan.type or error()
-local Io = require "luan:Io.luan"
-local output_of = Io.output_of or error()
 
 
 local Html = {}
@@ -48,7 +46,7 @@
 end
 
 function Html.to_string(list)
-	return output_of( function()
+	return `
 		for _, obj in ipairs(list) do
 			local tp = type(obj)
 			if tp == "string" then
@@ -74,7 +72,7 @@
 				error("invalid value ("..tp..") in list for 'Html.to_string'")
 			end
 		end
-	end )
+	`
 end
 
 return Html