Sha256: a175244fc1327441186dc44f9ca5af69569f528206263039a935b8bf8b0158ba

Contents?: true

Size: 1.47 KB

Versions: 2

Compression:

Stored size: 1.47 KB

Contents

module Stylish
  module Rails
    module ViewHelpers
      # used by a layout to load the layout confiig it depends on.
      # this will help build the dependency manifests properly.
      #
      # @param [String] the identifier for the layout
      def load_theme_layout layout_identifier
      end

      # used by a page to load the components it will depend on. this
      # helps us build the dependency manifests properly
      def load_theme_components *component_identifiers
      end

      # sequentially renders every component for this page
      def render_all_components
      end

      # renders a component. used in the page layouts.
      def render_component component_identifier
      end

      # (see #javascript_imports_for)
      def stylesheet_imports_for(page_identifier, options={})
      end

      # Returns a list of sprockets logical paths to satisfy
      # the dependencies for a given stylish layout. These values can
      # be used to dynamically generate JS content using ERB, or in a generator
      # which will just output a sprockets manifest.
      #
      # This method will depend on the page having declared its dependency on
      # a layout, and the components it depends on.
      #
      # @param [String] the slug for the stylish page which will be using the requested components
      # @return [Array] a list of values which can be required in a sprockets manifest
      def javascript_imports_for(page_identifier, options={})
      end
    end
  end
end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
stylish-0.3.1 lib/stylish/rails/view_helpers.rb
stylish-0.3.0 lib/stylish/rails/view_helpers.rb