mediawiki-extensions-Scribunto/engines/LuaCommon/HtmlLibrary.php
Marius Hoch ac62e34952 Add mw.html to Scribunto
A module for building complex HTML from Lua using a
fluent interface. The module is originally from enwiki,
but the authors allowed us to reuse it under GPLv2+
(as stated in the file).
The module will be loaded per default and comes with
unit tests.

As discussed on wikitech-l:
http://lists.wikimedia.org/pipermail/wikitech-l/2013-December/073320.html

Change-Id: I7c8d4378091c13d5ace0dd1fcbb4e27163e8c896
2014-01-03 00:04:34 +01:00

8 lines
168 B
PHP

<?php
class Scribunto_LuaHtmlLibrary extends Scribunto_LuaLibraryBase {
function register() {
$this->getEngine()->registerInterface( 'mw.html.lua', array() );
}
}