I am not a big fan of having any framework files in the web root. I typically only have index.cfm and all my other ColdFusion code lives a level up from web root and is all handled via ColdFusion per-application mappings. I also put all my .js, .css and images files in their own directory in a folder named assets
in the web root. No reason why you cannot still use the section and action to name your files and include them dynamically.
Best location for Javascript files for specific Section/Item
-
29-06-2022 - |
Question
I am creating a website that is powered by FW/1. It is already known that each Section/Item combination will potentially need its own JavaScript file. I am considering having all the JS files near their corresponding view files.
views/#getSection()#/#getItem()#.js
I don't like that I am now serving up files from what would normally be a hidden directory. What is the best location for Section/Item specific JS files
Solution
Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow