sekati/codeigniter-asset-helper — pull request #1 by michaelbrooks (2012-10-05 05:14:00+00:00)
Title: Add attributes to js()

It is sometimes useful to add addtional attributes to a script tag.

For example, when using require.js, a **data-main** attribute is typically used.

This change lets you easily add custom attributes to the script element, much as you can for image elements already.

I don't know if any other helpers would benefit from a similar
change, so I let them be.