|
template.js is the natural place of all user javascripts
BASIC TEMPLATE has the peculiarity of not using template.js because it lacks the proper inclusion of it.
In the Template Editor, template.js is always shown, even if it's not called inside *pstpl. When editing BASIC template, you can edit template.js, bit it will not be loaded at runtime.
I suggest to make it crystal clear that this is the default behavior.
If not, the user may waste time in debug & design, until he notices that his javascripts are not there and fix the basic template.
Also, COPYING BASIC for your own work will result in inactivated template.js, so the issue reinforces itself in the copies/clones
|