I'm looking for a good approach to manipulate some JS code from within a module call. (Using Drupal 6.)
$output .= ' var url = "'. $url . '";' . "\n";, which is not so nice after 20-30 lines of code.
.js file, and find a way to inject my variables. So far, the only solution I could come up with is putting it in a temporary file, read that, modify and save it to the
/files directory. But is there another, more preferred way?