Now that client-side HTML templating has been merged into core (https://gerrit.wikimedia.org/r/#/c/180647/) we need to migrate MobileFrontend to start using it (rather than using the local Hogan library). Most of the MF templates should be migratable with no changes (other than changing the filename extension).
In QuickSurveys and Card extension we have to create a custom compiler called muhogan that loads either mustache or hogan library to compile templates. The templates used are compatible with both languages. Should we upstream hogan and replace mustache with it in core? Should both live in core? Should we use mustache in MF? Should we do something else?
Developer notes
Using JSX and a webpack transpiler seems a modern approach for doing templating. It avoids the need for a template library while solving the problem of readability.
Sign off steps
- All existing subtasks have been resolved
- A task has been created to ensure the mediawiki.template.hogan module gets fully removed (Patch is here: https://gerrit.wikimedia.org/r/506340)
- The change is documented on the release timeline