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#Performance
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
_______________________________________________
Wikitech-l mailing list
Wikitech-l@lists.wikimedia.org
https://lists.wikimedia.org/mailman/listinfo/wikitech-l

Reply via email to