mirror of
https://github.com/discourse/discourse.git
synced 2024-12-02 15:43:43 +08:00
7ed6195f19
Now that core has a file structure and default imports, Ember's resolver can load helpers lazily. So we can remove the lazy loading, and helpers in ember templates will continue to work. This should provide a slight performance improvement for initial boot. However, there is a slight complication: some of our helpers are also registered with our Raw Handlebars system as a side-effect of loading the module. Therefore, this commit adds a `helperMissing` helper to our RawHandlebars system. This looks up the helper by name in the ember resolver, which triggers the relevant module to be evaluated, and the raw helper to be registered as a side effect. For backwards-compatibility, plugin and theme helpers continue to be eagerly evaluated. Once the `discourse.register-unbound` deprecation is resolved, we can safely remove this eager loading. |
||
---|---|---|
.. | ||
attribute-hook.js | ||
avatar-utils.js | ||
debounce.js | ||
deprecated.js | ||
discourse-template-map.js | ||
dom-from-string.js | ||
escape.js | ||
get-owner.js | ||
get-url.js | ||
helpers.js | ||
icon-library.js | ||
later.js | ||
loader-shim.js | ||
object.js | ||
popular-themes.js | ||
raw-handlebars-helpers.js | ||
raw-handlebars.js | ||
raw-templates.js | ||
suffix-trie.js |