class Sprockets::BundledAsset
def build_dependency_context_and_body
def build_dependency_context_and_body start_time = Time.now.to_f context = blank_context # Read original data once and pass it along to `Context` data = Sprockets::Utils.read_unicode(pathname) # Prime digest cache with data, since we happen to have it environment.file_digest(pathname, data) # Runs all processors on `Context` body = context.evaluate(pathname, :data => data) @dependency_context, @body = context, body elapsed_time = ((Time.now.to_f - start_time) * 1000).to_i logger.info "Compiled #{logical_path} (#{elapsed_time}ms) (pid #{Process.pid})" return context, body end