Edge Rewrite
// HTMLRewriter · presentation

This page was redesigned at the edge.

Cloudflare fetched the original article and streamed it through HTMLRewriter to apply an entirely new visual system without rebuilding the source page.

// request.cf · coarse context

A page that knows where it met you.

Only coarse request metadata is shown. This demo does not display or persist visitor IP addresses.

Country
US
Cloudflare location
CMH
Connection
HTTP/2
Language
Not provided

Ray ID: a23013d6ae3e386c

Jump to content

Module:Sandbox/Ahecht/modsandbox

From Wikipedia, the free encyclopedia
local p = {}

function p.main(frame)
	local outStr
	local args = frame:getParent().args
	
	outStr = 'Pairs:\n'
	
	for k, v in pairs(args) do
		if not v then
			v = "[nil]"
		elseif v == "" then
			v = "[blank]"
		end
		outStr = outStr..'\n'..k..' = \t'..v..'\n'
	end
	
	outStr = outStr..'\niPairs:\n'
	
	for k, v in ipairs(args) do
		if not v then
			v = "[nil]"
		elseif v == "" then
			v = "[blank]"
		end
		outStr = outStr..'\n'..k..' = \t'..v..'\n'
	end
	
	return outStr
end

return p