Module:Create style property settings

Documentation for this module may be created at Module:Create style property settings/doc

local me = { }

function me.fromMapping(frame)
	local outputBuffer = { }
	local parentFrame = frame:getParent();
	for templateArgName, cssPropertyName in pairs(frame.args) do
		local cssValue = parentFrame.args[templateArgName]
		if cssValue ~= nil then
			table.insert(outputBuffer, cssPropertyName .. ': ' .. cssValue .. ';')
		end
	end

	-- if table is empty, concat will return an empty string
	return table.concat(outputBuffer, ' ')
end  -- function me.fromMapping()

return me