Board Thread:Lua Help/@comment-4405550-20160124224015/@comment-24473195-20160128224010

Well, wikipedians are again well ahead of you. If you look at the bottom part of this page:


 * https://en.wikipedia.org/w/index.php?title=Module:test&action=edit

You'll note that the ability to preview the contents in a different page are already possible. Although they use a whole extension to achieve this.

I've had similar thoughts and even suggested it to staff at one point. I also  developed modules such as and  Luapreviewer to do some of this. More importantly in wikipedia, it is possible to get the frame for any page using the console. Wikia simply didn't backport that "simple" patch.

Anyway, with 0 experience with node.js  it took  a while to set it up, and I still don't know much about it. SetcontentfromFile was giving  an error about an unknown module so I changed it to this:

var fs = require('fs');

Some comments about the tool:


 * Maybe add a bit of docs about setting up node, the version, the dependencies etc.


 * Some simple debugging tool that works like the console would help, e.g. SC.debug('print(buga")')

The node server may help, but wouldn't it make things more complicated to debug rather than simpler?