diff src/luan/modules/Html.luan @ 1088:bae2d0c2576c

change module naming convention
author Franklin Schmidt <fschmidt@gmail.com>
date Mon, 26 Dec 2016 22:29:36 -0700
parents 1a68fc55a80c
children 2bbc6f132d61
line wrap: on
line diff
--- a/src/luan/modules/Html.luan	Mon Dec 19 01:38:21 2016 -0700
+++ b/src/luan/modules/Html.luan	Mon Dec 26 22:29:36 2016 -0700
@@ -11,20 +11,20 @@
 local output_of = Io.output_of or error()
 
 
-local M = {}
+local Html = {}
 
-M.encode = HtmlLuan.encode
+Html.encode = HtmlLuan.encode
 
 local quote = HtmlLuan.quote
-M.quote = quote
+Html.quote = quote
 
-function M.parse(text,container_tags)
+function Html.parse(text,container_tags)
 	text or error "text required"
 	container_tags = container_tags or {"script","style","textarea"}
 	return HtmlParser.toList(text,container_tags)
 end
 
-function M.url_encode(s)
+function Html.url_encode(s)
 	return URLEncoder.encode(s,"UTF-8")
 end
 
@@ -43,7 +43,7 @@
 	%>><%
 end
 
-function M.to_string(list)
+function Html.to_string(list)
 	return output_of( function()
 		for _, obj in ipairs(list) do
 			local tp = type(obj)
@@ -73,4 +73,4 @@
 	end )
 end
 
-return M
+return Html