MediaWiki core now has built-in support for using Mustache HTML templates
from your client-side Javascript code. You can also use the same templates
on the server-side with the TemplateParser class.
Documentation:
https://www.mediawiki.org/wiki/Manual:HTML_templates#mw.template_.28client-…