call functions from separate files with Meteor -


i want create application in meteor, understand manual first loads in subdirectories, , follows alphabetical order. file structure ...

/server /lib /client     /lib         game.js -> starts declaring function "makeboard(){}"     /template.js -> function "makeboard()" called. 

thus appears error function "makeboard()" not exist, works if declare in same file want call it. when move file "game.js" same directory "template.js", happens. how should correctly make references resources in different files on meteor?

define function makeboard = function() { ... }.

functions defined function foo() { ... } local file, variables defined var bar = ....


Comments

Popular posts from this blog

php - cannot display multiple markers in google maps v3 from traceroute result -

c# - DetailsView in ASP.Net - How to add another column on the side/add a control in each row? -

javascript - firefox memory leak -