Last modified: 2014-08-05 19:35:22 UTC
Flow and MobileFrontend want to share code that is not quite ready for MediaWiki core (core/mantle - get it?). One big example is sharing of delivering of client side templates via ResourceLoader. MobileFrontend has been doing this for some time, and the new extension Mantle simply shuffles code from there into a standalone repository so that Flow can use it without being dependent on MobileFrontend. Sadly this is not quite ready for core - as there has been no standardisation on a default template library. Once deployed, MobileFrontend can add a hard dependency to Mantle by merging the following patch: https://gerrit.wikimedia.org/r/#/c/129335/ Read more about Mantle here: https://www.mediawiki.org/wiki/Extension:Mantle Note: The plan is also to move Nearby functionality into the GeoData extension and add a dependency on GeoData to Mantle.
Any new code here or just a copy/paste operation? I'm only worried because of the word "template" :)
Pretty much a cut and paste job from MobileFrontend with some renaming. That said there are a few tweaks to the template.js file that allow different template compilers so that as well as Hogan it supports Handlebars. I suspect if you were to find any issues with Mantle you would also find them with MobileFrontend :)
(In reply to Greg Grossmeier from comment #1) > Any new code here... ? Yes. Besides the code that was formerly in extension MobileFrontend restructured for code sharing, this introduces the new third-party templating library Handlebars.js in Mantle/javascripts/externals/handlebars.js. That will need security review.
(In reply to spage from comment #3) > (In reply to Greg Grossmeier from comment #1) > > Any new code here... ? > > Yes. Besides the code that was formerly in extension MobileFrontend > restructured for code sharing, this introduces the new third-party > templating library Handlebars.js in > Mantle/javascripts/externals/handlebars.js. That will need security review. Bug 66238
Change 142142 had a related patch set uploaded by Spage: add new Mantle extension, required by coming Flow https://gerrit.wikimedia.org/r/142142
Gerrit change #142142 is for beta labs, https://gerrit.wikimedia.org/r/#/c/142151/ is for production (Gerrit Notification Bot missed the latter?).
Change 142142 merged by jenkins-bot: new Mantle extension on labs, required by coming Flow https://gerrit.wikimedia.org/r/142142
This was done ages ago; https://en.wikipedia.org/wiki/Special:Version reports Mantle as deployed.