dépôts
/
lhc
/
web
/
wiklou.git
/ blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
history
|
raw
|
HEAD
Merge "content: Recognise .json as JsonContent in User and MediaWiki namespace"
[lhc/web/wiklou.git]
/
resources
/
src
/
mediawiki
/
mediawiki.template.mustache.js
1
/*global Mustache */
2
(
function
(
mw
, $ ) {
3
// Register mustache compiler
4
mw
.
template
.
registerCompiler
(
'mustache'
, {
5
compile
:
function
(
src
) {
6
return
{
7
render
:
function
(
data
) {
8
return
$( $.
parseHTML
(
Mustache
.
render
(
src
,
data
) ) );
9
}
10
};
11
}
12
} );
13
14
}(
mediaWiki
,
jQuery
) );