Upperstage
Upperstage

Reputation: 3757

How to include JS libraries in SpiderMonkey

I want to use Underscore.js and Backbone.js in a stand-alone SpiderMonkey scriptfile. I can find only very simple examples of SpiderMonkey scripts.

How do I include Underscore.js and Backbone.js (and other libraries like jQuery) in a stand-alone SpiderMonkey scriptfile? Can you point me to any other useful resources for writing SpiderMonkey js scripts?

Upvotes: 1

Views: 1110

Answers (1)

Upperstage
Upperstage

Reputation: 3757

load ('underscore.js');

I found a nice Intro

Upvotes: 1

Related Questions