Currently QuickSurveys loads Mustache on mobile which is unacceptable for production given that the mobile site already heavily relies on Hogan and this results in the loading of frontend code for both Hogan and Mustache which do essentially the same job in slightly different languages.
On the long term we'll need to convert Hogan templates to Mustache (see T94086)
In the short term we have several options
- Hybrid approach - load the right template language depending on platform - it is possible to write templates that render with both Mustache and Hogan by using a subset of the language.
- Don't use templates at all.
I'm keen to go with 1 given it will provide useful information with how existing MobileFrontend code can be ported to oojs ui / used on desktop. 2 seems conterproductive given the investment we've made in templates in MobileFrontend and believe that they allow a controlled way to rapidly prototype ideas and a strong belief that they can fit into the oojs ui ecosytem usefully.