diff util/template.lua @ 6777:5de6b93d0190

util.*: Remove use of module() function, make all module functions local and return them in a table at the end
author Kim Alvefur <zash@zash.se>
date Sat, 21 Feb 2015 10:36:37 +0100
parents 1430c6f36621
children 94ec474debf5
line wrap: on
line diff
--- a/util/template.lua	Mon Aug 10 22:16:05 2015 +0200
+++ b/util/template.lua	Sat Feb 21 10:36:37 2015 +0100
@@ -9,7 +9,7 @@
 local t_remove = table.remove;
 local parse_xml = require "util.xml".parse;
 
-module("template")
+local _ENV = nil;
 
 local function trim_xml(stanza)
 	for i=#stanza,1,-1 do