Jdlrobson has uploaded a new change for review.

  https://gerrit.wikimedia.org/r/169931

Change subject: Register Hogan with mw.template
......................................................................

Register Hogan with mw.template

Change-Id: Ia7b74d229dd419a5cf2e5d20054e0067d76b366a
---
M javascripts/common/templates/hogan.js
1 file changed, 6 insertions(+), 2 deletions(-)


  git pull ssh://gerrit.wikimedia.org:29418/mediawiki/extensions/Mantle 
refs/changes/31/169931/1

diff --git a/javascripts/common/templates/hogan.js 
b/javascripts/common/templates/hogan.js
index 30adb28..4db3140 100644
--- a/javascripts/common/templates/hogan.js
+++ b/javascripts/common/templates/hogan.js
@@ -4,7 +4,7 @@
         * @class HoganTemplateCompiler
         * @singleton
         */
-       M.template.registerCompiler( 'hogan', {
+       var hogan = {
                /**
                 * Registers a partial internally in the compiler.
                 * Not used in Hogan compiler
@@ -24,5 +24,9 @@
                compile: function( src ) {
                        return Hogan.compile( src );
                }
-       } );
+       };
+       // register hogan compiler with core
+       mw.template.registerCompiler( 'hogan', hogan );
+       // @deprecate
+       M.template.registerCompiler( 'hogan', hogan );
 }( mw.mantle ) );

-- 
To view, visit https://gerrit.wikimedia.org/r/169931
To unsubscribe, visit https://gerrit.wikimedia.org/r/settings

Gerrit-MessageType: newchange
Gerrit-Change-Id: Ia7b74d229dd419a5cf2e5d20054e0067d76b366a
Gerrit-PatchSet: 1
Gerrit-Project: mediawiki/extensions/Mantle
Gerrit-Branch: master
Gerrit-Owner: Jdlrobson <[email protected]>

_______________________________________________
MediaWiki-commits mailing list
[email protected]
https://lists.wikimedia.org/mailman/listinfo/mediawiki-commits

Reply via email to