From f6d65e533c62f6deb21342d4901ece24497b433e Mon Sep 17 00:00:00 2001 From: Pierre Schmitz Date: Thu, 4 Jun 2015 07:31:04 +0200 Subject: Update to MediaWiki 1.25.1 --- resources/src/mediawiki/mediawiki.template.mustache.js | 14 ++++++++++++++ 1 file changed, 14 insertions(+) create mode 100644 resources/src/mediawiki/mediawiki.template.mustache.js (limited to 'resources/src/mediawiki/mediawiki.template.mustache.js') diff --git a/resources/src/mediawiki/mediawiki.template.mustache.js b/resources/src/mediawiki/mediawiki.template.mustache.js new file mode 100644 index 00000000..dcc3842b --- /dev/null +++ b/resources/src/mediawiki/mediawiki.template.mustache.js @@ -0,0 +1,14 @@ +/*global Mustache */ +( function ( mw, $ ) { + // Register mustache compiler + mw.template.registerCompiler( 'mustache', { + compile: function ( src ) { + return { + render: function ( data ) { + return $.parseHTML( Mustache.render( src, data ) ); + } + }; + } + } ); + +}( mediaWiki, jQuery ) ); -- cgit v1.2.3-54-g00ecf