I\'m using the Zend Framework\'s javascript helpers of the form:
headScript()->captureStart(); ?> //Javascript here h
Something like this:
headScript()->captureStart(); ?> // headScript()->captureEnd(); ?>
Of course it will produce two useless lines in your JS output, but you can modify captureEnd() method to strip those for you.
captureEnd()