Blaze: Register global template helpers

Where I have to put global template helpers in the new meteor app structure.

client

imports
components

Thank you!

1 Like

I put mine in the client folder under main.js

Don’t have to put it anywhere in particular for it to work

I chose to put them in:

/imports/startup/client/templateHelpers.js

and load them from:

/imports/startup/client.js

Which feels like it’s in the spirit of the recommended structure

1 Like