Meteor : Access to my public/lib from server -


according meteor doc, public fodler accessible both server , client. but, if need use html head elements access it, how can server ?

i made lib specific functions, , i'm tired of copy pasting them @ top of each of server .js file.

could give me tip ? couldn't find out on google :/

thanks you,

david

you making life harder necessary. any folder not called client, server, private, or public shared client , server. put shared .js files folder, say, /common, , available (loaded) on both client , server.

the public folder assets not loaded automatically server, instead served statically on http, similar static functionality of express. it's place images , other assets want on client.


Comments

Popular posts from this blog

mysql - FireDac error 314 - but DLLs are in program directory -

git - How to list all releases of public repository with GitHub API V3 -

c++ - Getting C2512 "no default constructor" for `ClassA` error on the first parentheses of constructor for `ClassB`? -