I am making a WordPress plugin and some of the options from the admin interface are for the JavaScript file that handles the interface of the widget.
The issue is that I do not see a practical way to echo the settings into that file. I was considering making a PHP file that fakes its file content type. Or creating a dynamic JavaScript file whenever the page loads, but currently im sharing the options through a hidden div that has the information as a base64 encoded json string that is read and loaded when the page finishes loading.
What is the best way to set my WordPress settings into my JavaScript file?