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

css - Text drops down with smaller window -

php - Boolean search on database with 5 million rows, very slow -

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