def call(input)
      context = input[:environment].context_class.new(input)
      # context.link_asset('main/assets/images/lombard.jpg')
      # puts context.asset_path('main/assets/images/lombard.jpg').inspect
      # pp input
      data = input[:data]

      # input[:accept] = 'application/javascript'
      # input[:content_type] = 'application/javascript'
      # input[:environment].content_type = 'application/javascript'
      compiled = false
      data, links = input[:cache].fetch([self.cache_key, data]) do
        compiled = true
        filename = input[:filename]
        # puts input[:data].inspect
        # Remove all semicolons from source
        # input[:content_type] = 'application/javascript'

        # Track the dependency
        context.metadata[:dependencies] << Sprockets::URIUtils.build_file_digest_uri(input[:filename])

        compile(filename, input[:data], context)
      end

      unless compiled
        links.each do |link|
          context.link_asset(link)
        end
      end

      context.metadata.merge(data: data.to_str)
    end
def call(input)
      context = input[:environment].context_class.new(input)
      # context.link_asset('main/assets/images/lombard.jpg')
      # puts context.asset_path('main/assets/images/lombard.jpg').inspect
      # pp input
      data = input[:data]

      # input[:accept] = 'application/javascript'
      # input[:content_type] = 'application/javascript'
      # input[:environment].content_type = 'application/javascript'
      compiled = false
      data, links = input[:cache].fetch([self.cache_key, data]) do
        compiled = true
        filename = input[:filename]
        # puts input[:data].inspect
        # Remove all semicolons from source
        # input[:content_type] = 'application/javascript'

        # Track the dependency
        context.metadata[:dependencies] << Sprockets::URIUtils.build_file_digest_uri(input[:filename])

        compile(filename, input[:data], context)
      end

      unless compiled
        links.each do |link|
          context.link_asset(link)
        end
      end

      context.metadata.merge(data: data.to_str)
    end
def evaluate(context, locals, &block)
   binding.pry
   @data = compile(@data)
   super
 end