Module:View

Revision as of 13:43, 18 July 2019 by がか (talk | contribs)

Documentation for this module may be created at Module:View/doc

---
-- Wrap (args, frame?) -> wikitext function into a frame -> wikitext function.
--
-- [[Category:Todo]]: actually should provide a react-like view library.
--

local _ = require('Module:Core')

return function(render)
  return {
    render = function(frame)
      frame = frame or {}
      return render(_.getTemplateArgs(frame), frame)
    end
  }
end