lundi 19 septembre 2016

Incorrect pathing to include external JS files in Ember project (not sure)

Or at least, I THINK this is what's happening. A contractor and I are doing development in tandem (he in HTML5, and myself in Ember and Rails). He supplies me with the HTML, and I try to render it in Ember. He has created these HTML and JS files that are supposed to render various items on my pages, but for the life of me whatever I do I just cannot get them to do so. When I run my project and try to navigate to the pages, some items render and some simply do not. At this point we are thinking it is a pathing issue to his JS files. Here is the relevant portion of my index.html file :

...

  <body>

    


    
    ...

    <script src="js/classie.js"></script>

    <script src="js/sidebarEffects.js"></script>

    <script src="js/trackernetworks.js"></script>

    ...

    

    ...

    <script src="js/trackernetworks.js"></script>

  </body>

  ...

and these js files are stored in the directory of :

<project root>/public/js

We have a feeling this pathing directive might be wrong. I hope it is, because if it isn't, then I legitimately have no idea why our items won't render. Please help, thanks! I'll also be happy to post any other information that is not here that could possibly lead to a solution.




Aucun commentaire:

Enregistrer un commentaire