Reworked to use included values function and not pairs
[exim-dns.git] / templates.lua
index 210ccb3624e85c7482e67be60b5edc018fe66df5..8173c8977f3cb07d22913287f44f99e723ccc9f2 100644 (file)
@@ -33,3 +33,10 @@ function a_and_aaaa(domain, ipv4, ipv6, ttl)
   a(domain, ipv4, ttl)
   aaaa(domain, ipv6, ttl)
 end
+
+
+
+function values (t)
+    local i = 0
+    return function () i = i + 1; return t[i]  end
+end