module Roda::RodaPlugins::Sprockets::InstanceMethods

Public Instance Methods

opal_require(file) click to toggle source

Require Opal assets

# File lib/roda/plugins/sprockets.rb, line 115
        def opal_require file
          <<~END
            <script>
              Opal.loaded(typeof(OpalLoaded) === "undefined" ? [] : OpalLoaded);
              Opal.require(#{file.to_json});
            </script>
          END
          .gsub(/\s+/, ' ').chop
        end
sprockets_helpers_settings() click to toggle source

Overload of Sprockets::Helpers#sprockets_helpers_settings to support polyinstantiation

# File lib/roda/plugins/sprockets.rb, line 110
def sprockets_helpers_settings
  sprockets_options[:sprockets_helpers]
end
sprockets_options() click to toggle source
# File lib/roda/plugins/sprockets.rb, line 105
def sprockets_options
  self.class.sprockets_options
end