Jakob_WMDE added a comment.
I believe that this is achievable with ResourceLoader HTML templates <https://www.mediawiki.org/wiki/Manual:HTML_templates#mw.template_(client-side)>. We can extract the vue templates into individual files, and then share them between the PHP and JS code. It looks like MediaWiki currently expects this type of template to be mustache templates, but also provides a mechanism to provide alternative formats via custom template compilers <https://gerrit.wikimedia.org/r/plugins/gitiles/mediawiki/core/+/master/resources/src/mediawiki.template.mustache.js>. TASK DETAIL https://phabricator.wikimedia.org/T198455 EMAIL PREFERENCES https://phabricator.wikimedia.org/settings/panel/emailpreferences/ To: Jakob_WMDE Cc: Tarrow, Jakob_WMDE, Pablo-WMDE, darthmon_wmde, DannyS712, Nandana, Mringgaard, Lahi, Gq86, GoranSMilovanovic, Jayprakash12345, QZanden, LawExplorer, _jensen, rosalieper, Scott_WUaS, Izno, Wikidata-bugs, aude, Dinoguy1000, Lydia_Pintscher, Mbch331, Jay8g
_______________________________________________ Wikidata-bugs mailing list Wikidata-bugs@lists.wikimedia.org https://lists.wikimedia.org/mailman/listinfo/wikidata-bugs