Jdlrobson created this task. Jdlrobson added a subscriber: Jdlrobson. Jdlrobson added a project: Wikidata. Jdlrobson changed Security from none to none.
TASK DESCRIPTION MediaWiki core supports templating now as part of ResourceLoaderFileModule and soon it will support mustache templates. Now might be a good time to start making use of it. ``` $wgResourceLoaderModules['foo'] = array( 'templates' => array( 'foo.hogan' => 'path/to/foo.mylanguage', 'foo.html' => 'path/to/foo.html', ), ); mw.template.get( 'foo', 'foo.wbTemplate' ).render( { data: 'foo' } ); mw.template.get( 'foo', 'foo.html' ).render().appendTo( document.body ); ``` Even if what WikiData is doing with templates needs a template language other than mustache you could register the compiler you are using. Happy to help support this if you need the help! :) TASK DETAIL https://phabricator.wikimedia.org/T78559 REPLY HANDLER ACTIONS Reply to comment or attach files, or !close, !claim, !unsubscribe or !assign <username>. EMAIL PREFERENCES https://phabricator.wikimedia.org/settings/panel/emailpreferences/ To: Jdlrobson Cc: Aklapper, Jdlrobson, Wikidata-bugs, aude _______________________________________________ Wikidata-bugs mailing list Wikidata-bugs@lists.wikimedia.org https://lists.wikimedia.org/mailman/listinfo/wikidata-bugs