https://bugzilla.wikimedia.org/show_bug.cgi?id=45470
Danny B. <[email protected]> changed: What |Removed |Added ---------------------------------------------------------------------------- Priority|Lowest |Normal CC| |[email protected] Whiteboard| |usability --- Comment #6 from Danny B. <[email protected]> --- Say you have JSON "database" of some data you want to use both in JavaScript (gadget) as well as in Lua (module). Trivial (but rather artificial) example: Array of pairs country code - country name. Gadget where you put country code in input and it will generate some text to be input into the editbox. Module where the template param is the country code and it generates some output. Both need the country name. Doesn't make a sense to have two "databases", one in JavaScript, one in Lua. Synchronization issues obviously. ---- Another example for why this would be helpful: Sharing tables between modules via (de)serialization: Trivial (again artificial for making it really simple) example again: {{parent|param={{child|foo|bar|baz}}}} child does #invoke:child, parent does #invoke:parent module:child simply builds the table { "foo", "bar", "baz" } module:parent takes the built table (currently impossible, because module can return text only) and uses whatever is there for own purposes -- You are receiving this mail because: You are the assignee for the bug. You are on the CC list for the bug. _______________________________________________ Wikibugs-l mailing list [email protected] https://lists.wikimedia.org/mailman/listinfo/wikibugs-l
