Sha256: cbf727b2329575b6c2cfe7d406e4d2968627509fa43f2ad956fc38d18138f71b

Contents?: true

Size: 336 Bytes

Versions: 8

Compression:

Stored size: 336 Bytes

Contents

require 'sprockets/jst_processor'

module Jasmine::Headless
  class JSTTemplate < Sprockets::JstProcessor
    include Jasmine::Headless::FileChecker
    def evaluate(*args)
      if bad_format?(file)
        alert_bad_format(file)
        return ''
      end
      %{<script type="text/javascript">#{super}</script>}
    end
  end
end

Version data entries

8 entries across 8 versions & 2 rubygems

Version Path
jasmine-headless-webkit-firstbanco-0.9.0.rc.5 lib/jasmine/headless/jst_template.rb
jasmine-headless-webkit-firstbanco-0.9.0.rc.4 lib/jasmine/headless/jst_template.rb
jasmine-headless-webkit-firstbanco-0.9.0.rc.3 lib/jasmine/headless/jst_template.rb
jasmine-headless-webkit-firstbanco-0.9.0.rc.2 lib/jasmine/headless/jst_template.rb
jasmine-headless-webkit-0.9.0.rc.2 lib/jasmine/headless/jst_template.rb
jasmine-headless-webkit-0.9.0.rc1 lib/jasmine/headless/jst_template.rb
jasmine-headless-webkit-0.8.4 lib/jasmine/headless/jst_template.rb
jasmine-headless-webkit-0.8.3 lib/jasmine/headless/jst_template.rb