Skip to content
This repository has been archived by the owner on Nov 21, 2018. It is now read-only.
Jeremy Mack edited this page Oct 15, 2013 · 13 revisions

How do I add another JavaScript / CoffeeScript Library?

Answer

Put it in vendor/scripts and then modify config.coffee to control the load order if the library has dependencies.

How do I Detect the Environment?

Answer

In a template you can access {{env.isDevelopment}}, {{env.isProduction}}, and {{env.name}.

In code you need to Environment = require 'config/environment' and then instantiate the object env = Environment.create().

Clone this wiki locally