canvas-lms/app/views/layouts
Ryan Florence 929fea181b added js_env view/controller helper
this helper is the mechanism to send data from
rails to the JavaScript w/o requiring an xhr
or dumping data into the DOM and pulling it back
out /barf

you can call it from a view or a controller

test case:
1. call `js_env :FOO => 'bar'` in a view or
   in a controller
2. load the page
3. open the web console and inspect the ENV
   global JavaScript variable
4. ENV.FOO should be 'bar', wassupnow?

Change-Id: Ie079ba0ee610fc6a9e837cd1301ee29b08201e65
Reviewed-on: https://gerrit.instructure.com/8170
Tested-by: Hudson <hudson@instructure.com>
Reviewed-by: Ryan Shaw <ryan@instructure.com>
2012-01-19 16:10:19 -07:00
..
application.html.erb added js_env view/controller helper 2012-01-19 16:10:19 -07:00
eportfolio.html.erb update js extractor (and views) for new js_block scoping usage 2011-06-23 17:08:27 -06:00
facebook.html.erb i18n for layouts 2011-06-14 17:01:26 -06:00