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
Post a Comment