问题
I'm writing a program with meteor and I'm wondering how one would go about splitting a single meteor JavaScript file, like one that is generated upon the 'meteor' command, into a client and server folder (client.js, server.js, etc). I haven't found any good guides. Does anybody know of any? Thanks
回答1:
Just create two directories, client
and server
. Then put the frontend codes in client
and the backend codes in server
. Take a look at http://docs.meteor.com/#structuringyourapp
来源:https://stackoverflow.com/questions/20817037/divide-meteor-files-into-client-and-server-folders