Meteor 1.3, How to load code without inporting iT like a helper


#1

Hi,

Normally I would just put my Template.registerHelper somewhere in the client folder. How can I do this with 1.3 import statements?

Thank you


#2

You can do this like this:

import '/imports/ui/UIHelpers';

see
https://developer.mozilla.org/nl/docs/Web/JavaScript/Reference/Statements/import