opal/opal — pull request #570 by kylekyle (2014-08-22 02:31:49+00:00)
Title: Make the Opal Tilt template work in any context.

Opal registers Opal::Processor as a Tilt template for .opal files. That template only works if passed a Sprockets context. Even with limited functionality, it is useful to have an Opal Tilt template that runs in any context. For example, I like to embed Opal in my Slim templates for inline javascript without having to switch away from ruby.

This pull request simply compiles the Tilt data using Opal.compile if the context passed in was anything other than a Sprockets::Context.