Sha256: ba5d1be726ffa256d48d7bf6cab0717755d04d98bf93a8b426a8bdaac886e4ea

Contents?: true

Size: 608 Bytes

Versions: 21

Compression:

Stored size: 608 Bytes

Contents

class <%= class_name %> < Sidebar
  # display_name "<%= class_name.underscore.humanize %>" # Default
  description "Describe your sidebar here"

  # Check the other sidebars for the sort of thing you can do with setting
  # declarations

  def parse_request(contents, params)
    # contents is a list of the items being rendered on the current page
    # params is the params hash for the current request

    # Take a look at (eg) the amazon sidebar for examples of what gets done here
    # If your sidebar doesn't depend on the request or the contents, you don't
    # need to do anything here.
  end
end

Version data entries

21 entries across 21 versions & 1 rubygems

Version Path
typo-5.5 lib/generators/sidebar/templates/sidebar.rb
typo-5.4.4 lib/generators/sidebar/templates/sidebar.rb
typo-5.4.3 lib/generators/sidebar/templates/sidebar.rb
typo-5.4.2 lib/generators/sidebar/templates/sidebar.rb
typo-5.4.1 lib/generators/sidebar/templates/sidebar.rb
typo-5.4 lib/generators/sidebar/templates/sidebar.rb
typo-4.1.1 lib/generators/sidebar/templates/sidebar.rb
typo-5.0.1 lib/generators/sidebar/templates/sidebar.rb
typo-5.0.2 lib/generators/sidebar/templates/sidebar.rb
typo-4.1 lib/generators/sidebar/templates/sidebar.rb
typo-5.0.3.98.1 lib/generators/sidebar/templates/sidebar.rb
typo-5.0 lib/generators/sidebar/templates/sidebar.rb
typo-5.0.3.98 lib/generators/sidebar/templates/sidebar.rb
typo-5.1.1 lib/generators/sidebar/templates/sidebar.rb
typo-5.1.2 lib/generators/sidebar/templates/sidebar.rb
typo-5.1.3 lib/generators/sidebar/templates/sidebar.rb
typo-5.1 lib/generators/sidebar/templates/sidebar.rb
typo-5.1.98 lib/generators/sidebar/templates/sidebar.rb
typo-5.2 lib/generators/sidebar/templates/sidebar.rb
typo-5.2.98 lib/generators/sidebar/templates/sidebar.rb