Documentation[créer] [purger]
local p = {}

function p.main( frame )
	local str = frame.args[ 1 ]
	local nb = frame.args[ 'nb' ]

	for i = 1, nb do
		-- http://lua-users.org/wiki/StringTrim
		local trim = function ( s )
			return s:match( '^()%s*$' ) and '' or s:match( '^%s*(.*%S)' )
		end

		trim( str )
	end
end

return p