File: directive_processor.rb

package info (click to toggle)
ruby-sprockets-export 1.0.0-1.1
  • links: PTS, VCS
  • area: main
  • in suites: bookworm, bullseye, forky, sid, trixie
  • size: 124 kB
  • sloc: ruby: 117; sh: 4; makefile: 3
file content (8 lines) | stat: -rw-r--r-- 315 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
class Sprockets::DirectiveProcessor
  def process_export_directive(namespace, *flags)
    if @content_type == "application/javascript"
      Sprockets::Export::Store.set(@environment, @filename, [namespace, flags].flatten.join(" "))
      process_depend_on_directive "sprockets/export/version.rb"
    end
  end
end