Both handlebars (JS) and lightncandy (handlebars reimplemented in PHP)
support pre-compilation. Are the times in
https://www.mediawiki.org/wiki/Requests_for_comment/HTML_templating_library…
for pre-compilation?
Flow's handlebars templates are pre-compiled into PHP for server-side
templating. We haven't yet tried pre-compiling them in JS. Ideally the API
in Mantle[1] to render a template wouldn't change.
... if compilation & caching happens dynamically in ResourceLoader
Would be nice. The Handlebars compiler (into JS) and Knockoff/T-assembly
compiler (into JSON) are both Node.js programs.
[1]
https://www.mediawiki.org/wiki/Extension:Mantle#Developer_features
--
=S Page Features engineer