Page MenuHomePhabricator

Mantle: support handlebars compilation
Closed, InvalidPublic

Description

Handlebars templates can be precompiled into JavaScript, see http://handlebarsjs.com/precompilation.html . The compiler uses nodejs, so it might be a while before ResourceLoader can compile templates as needed in production. But it would be nice if RL could check for the existence of myTemplateName.handlebars.js , and use that as the template instead of running Handlebars.compile().

The other wrinkle is the compiled template adds itself as Handlebars.templates.myTemplateName, so this would have to be aliased.


Version: unspecified
Severity: enhancement

Details

Reference
bz64735

Related Objects

Event Timeline

bzimport raised the priority of this task from to Needs Triage.Nov 22 2014, 3:24 AM
bzimport set Reference to bz64735.
bzimport added a subscriber: Unknown Object (MLST).

bingle-admin wrote:

Prioritization and scheduling of this bug is tracked on Trello card https://trello.com/c/7eTXMkkI

Andre could we get a bugzilla product/component setup - Mediawiki Extensions / Mantle to move this to?

(In reply to Jon from comment #2)

Andre could we get a bugzilla product/component setup - Mediawiki Extensions
/ Mantle to move this to?

Please create a ticket for it and see https://www.mediawiki.org/wiki/Bug_management/Project_Maintainers#To_add_a_project_or_component for info

Is there any point keeping this open given T85890?

Jdlrobson claimed this task.