Description

It is not possible to use JavaScript templates in the data module because they rely on using $PAGE->requires->js() to include the file js.php. There is a specific check in lib/javascript.php that prohibits the use of any file not ending in '.js', so this doesn't work.