Sha256: 4ab0526cbcd4c1a5ab374bab5c6609618165ea3261fce06046d8bc927ce45756

Contents?: true

Size: 1.02 KB

Versions: 13

Compression:

Stored size: 1.02 KB

Contents

# encoding: utf-8
module Middleman
  module Presentation
    # A asset component
    #
    # It represents a asset component. A asset component can contain
    # JavaScript-files, stylesheets, images, fonts, ... . A asset component
    # knows where to get a the files from in filesystem, which version of the
    # component is required and which JavaScript-files and stylesheets should
    # be includes in "javascripts/application.js" and
    # "stylesheets"application.scss".
    class AssetComponent < Component
      attr_reader :path, :base_path

      # An asset component
      #
      # @see [Component] For all other params
      #
      # @param [String] path
      #   The directory where all assets files can be found which belong to this component
      def initialize(path:, base_path: path, name: path, **args)
        super(**args)

        @path = Pathname.new(path)
        @name = name
        @base_path = Pathname.new(base_path)
      end

      def root_directory; end

      def root_directory=(*); end
    end
  end
end

Version data entries

13 entries across 13 versions & 1 rubygems

Version Path
middleman-presentation-core-0.17.7 lib/middleman-presentation-core/asset_component.rb
middleman-presentation-core-0.17.6 lib/middleman-presentation-core/asset_component.rb
middleman-presentation-core-0.17.5 lib/middleman-presentation-core/asset_component.rb
middleman-presentation-core-0.17.2 lib/middleman-presentation-core/asset_component.rb
middleman-presentation-core-0.17.1 lib/middleman-presentation-core/asset_component.rb
middleman-presentation-core-0.17.0 lib/middleman-presentation-core/asset_component.rb
middleman-presentation-core-0.16.3 lib/middleman-presentation-core/asset_component.rb
middleman-presentation-core-0.16.2 lib/middleman-presentation-core/asset_component.rb
middleman-presentation-core-0.16.0 lib/middleman-presentation-core/asset_component.rb
middleman-presentation-core-0.16.0.rc2 lib/middleman-presentation-core/asset_component.rb
middleman-presentation-core-0.16.0.rc1 lib/middleman-presentation-core/asset_component.rb
middleman-presentation-core-0.16.0.beta lib/middleman-presentation-core/asset_component.rb
middleman-presentation-core-0.16.0.alpha lib/middleman-presentation-core/asset_component.rb