mirror of
https://github.com/discourse/discourse.git
synced 2024-11-25 07:51:36 +08:00
15 lines
329 B
JavaScript
15 lines
329 B
JavaScript
import { registerHelpers } from 'discourse-common/lib/helpers';
|
|
|
|
export default {
|
|
name: 'load-helpers',
|
|
|
|
initialize(application) {
|
|
Object.keys(requirejs.entries).forEach(entry => {
|
|
if ((/\/helpers\//).test(entry)) {
|
|
require(entry, null, null, true);
|
|
}
|
|
});
|
|
registerHelpers(application);
|
|
}
|
|
};
|