As it stands I have a jade file that I pass data from js files into. I then have the jade file require a js file that handles the d3 code.
I do not think this is the proper way to do this, but I do not want to be pulling data from monogo in the public js file because it is visible to the user.
If your slightly confused by my question the project and structures are here: https://github.com/rdecuir/NodeJSGraphics
I am trying to learn the best practices and structures, but have yet to find anything that makes sense in a structured way, I do not want to have script code in the jade file, nor do I want the data to be pulled in my d3 file because its exposed to the user.