Module:Args: Difference between revisions

Want an adless experience? Log in or Create an account.
add getTable function
(support value and table collisions in 'expand'; add fromFrame function)
(add getTable function)
Line 83: Line 83:


   return expandedArgs
   return expandedArgs
end
-- coerce the given node into a table, in case it is a standalone value
function p.getTable( val )
  return type( val ) == 'table' and val or { __value = val }
end
end