summaryrefslogtreecommitdiff
path: root/resources/src/mediawiki/mediawiki.template.mustache.js
blob: dcc3842bc18a02d4bf5f2144f520487d0683919e (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
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 ) );