class Sprockets::SourceLine

def interpolate_constants!(result, constants)

def interpolate_constants!(result, constants)
  result.gsub!(/<%=(.*?)%>/) do
    constant = $1.strip
    if value = constants[constant]
      value
    else
      raise UndefinedConstantError, "couldn't find constant `#{constant}' in #{inspect}"
    end
  end
end