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