Select one of the libraries referenced at http://scriptsrc.net/ and insert the HTML (or Haml) <script src=".."> link into your document.
Activate the command with scriptsrc
tab completion:
Select the JavaScript library you want:
In HTML or HTML(Rails) scopes you get instant HTML:
In Haml you get instant Haml:
To install via Git:
cd ~/"Library/Application Support/TextMate/Bundles/"
git clone git://github.com/drnic/html-script-src.tmbundle.git "HTML Script Src.tmbundle"
osascript -e 'tell app "TextMate" to reload bundles'
Source can be viewed or forked via GitHub: http://github.com/drnic/html-script-src.tmbundle
This script has also been ported to other editor(s):
Dr Nic Williams, drnicwilliams@gmail.com, http://drnicwilliams.com, Mocra
Live source of projects and their source URLs at http://scriptsrc.net/