Sha256: cb877e87c1eaf78e820b1fc0c14f81282b15865d4541fd60ce2fb545d6ecd2ca

Contents?: true

Size: 960 Bytes

Versions: 8

Compression:

Stored size: 960 Bytes

Contents

Sitemap::Generator.instance.load :host => "mywebsite.com" do

  # Sample path:
  #   path :faq
  # The specified path must exist in your routes file (usually specified through :as).

  # Sample path with params:
  #   path :faq, :params => { :format => "html", :filter => "recent" }
  # Depending on the route, the resolved url could be http://mywebsite.com/frequent-questions.html?filter=recent.

  # Sample resource:
  #   resources :articles

  # Sample resource with custom objects:
  #   resources :articles, :objects => proc { Article.published }

  # Sample resource with search options:
  #   resources :articles, :priority => 0.8, :change_frequency => "monthly"

  # Sample resource with block options:
  #   resources :activities,
  #             :skip_index => true,
  #             :updated_at => proc { |activity| activity.published_at.strftime("%Y-%m-%d") }
  #             :params => { :subdomain => proc { |activity| activity.location } }

end

Version data entries

8 entries across 8 versions & 1 rubygems

Version Path
sitemap-0.3.3 lib/generators/sitemap/templates/sitemap.rb
sitemap-0.3.2 lib/generators/sitemap/templates/sitemap.rb
sitemap-0.3.1 lib/generators/sitemap/templates/sitemap.rb
sitemap-0.3 lib/generators/sitemap/templates/sitemap.rb
sitemap-0.2 lib/generators/sitemap/templates/sitemap.rb
sitemap-0.2b2 lib/generators/sitemap/templates/sitemap.rb
sitemap-0.2b lib/generators/sitemap/templates/sitemap.rb
sitemap-0.1 lib/generators/sitemap/templates/sitemap.rb