I'm not sure what the motivation is for putting them where they are in view.html. Maybe there is one. However, if you want to use require.js, it will break if included in the current locations.
On the other hand, it will work if those are moved to end of head element, as in:
This still leaves the issue of serving up the scripts referenced from require; the simple solution is to add the ability to include an optional CherryPy config when starting the app; I discussed that here: https://github.com/adamhajari/spyre/issues/59
I'm not sure what the motivation is for putting them where they are in view.html. Maybe there is one. However, if you want to use require.js, it will break if included in the current locations.
On the other hand, it will work if those are moved to end of head element, as in:
which can then be used with:
etc.
This still leaves the issue of serving up the scripts referenced from
require
; the simple solution is to add the ability to include an optional CherryPy config when starting the app; I discussed that here: https://github.com/adamhajari/spyre/issues/59