Can someone point me in the right direction please. I'm trying to develop my theme along the lines that it should be according to documentation but I keep hitting a brick wall with the page https://docs.moodle.org/dev/Javascript_Modules#Minimum_.28getting_started.29_module_for_plugins
where the "minimum" module doesn't actually work.
I get the line....
require(["theme_curlew/startup"], function(amd) { amd.init(); });;(theme name is curlew and js file is startup.js in the amd/src folder.
I've put the line:
$CFG->cachejs = false;
in my theme config to stop js caching which (I think) means it runs the full js files rather than the minified ones.
Any advice or better still simple examples greatfully received.
Cheers
Dave